Beruflich Dokumente
Kultur Dokumente
21.07
--
BlackRock
21.07
--
BlackRock
01.08
--
Given an integer target and binary tree (not a binary search tree!) each of whose
nodes contains an integer (which may be positive or negative), find the set of all
subtrees whose sum equals the given target. The sum of a subtree is just the sum of
the integers contained in its nodes. Note that the subtree does not have to contain
all child nodes - it can be any set of connected nodes.
Question 3
In a casino dice game, you roll a 6-sided die ten times. The payout is one dollar if
the sum of numbers you rolled is less than 35 and the standard deviation of the
numbers you rolled is greater than 1.5, otherwise the payout is zero.
a) Write a function that simulates the game and returns the payout
b) Use this function to estimate the expected value of the payout
5.)
6.)
7.)
Solve one puzzle in 3 minutes --There is one monkey and it climbs UP 5 steps in 1st minute and climbs
DOWN 3 steps in 2nd minute. Then again it climbs UP 6 steps in 3rd
minute and climbs DOWN 3 steps in 4th minute. Then again it climbs UP
7 steps in 5th minute and climbs DOWN 3 steps in 6th minute..
continuing like this How many minutes monkey will take to cross 72
steps.
Prepare one equation based on time field (t).
What is your current compensation and why are you looking for a
change. Reason for so many frequent changes?
2.)
What advantage we are getting with ConcurrentHashMap, which
Map implementation you have used in solution 1. Is using
ConcurrentHashMap reducing the speed somewhere?
3.)
5.)
8.)
10.)
11.)
Have you worked on Hibernate and JMS? What is JMS and how it
works?
12.) Thats all from my side, if you have any questions you can ask.
HSBC
20.08
--
8.) How Java Memory model works in java? Explain the different types of
GC? What will be the technique used for garbage collection?
9.) Can we use some custom class as key for hashmap in java? If yes,
what we need to do to make sure that it works properly?
10.)
What is the use of equals and hashcode in java?
11.)
What is the use of web services? How you work on RESTful
webservice?
12.)
Explain what you have done in SOAP webservice in ETOPUP
backend application.
13.)
What design patterns you have used?
14.)
Explain immutable classes in java.
Ephesoft
25.08
--
6.) What is the use of scope singleton and when the object for this bean
gets created with scope singleton?
7.) Suppose we have one bean with scope singleton and which is
dependent on some other bean with scope prototype. So, when the
object will be created for first bean and when the object will be created
for second bean and how many objects will exist for second bean when
created through first bean?
8.) If we want multiple objects of second bean, how can we achieve this
thing?
9.) Is it necessary to provide default no-argument constructor in spring
bean class? If we do not provide the default no-argument constructor
then what will happen?
10.)
What are the different ways of autowiring in spring?
11.)
What are the different ways of injecting?
12.)
What will happen if we are using auto-wiring method as autodetect.
and so on