Interview Questions and Answers for 'Dell' - 8 question(s) found - Order By Newest Frequently asked at Manhattan Associates ( Based on 2 feedback ) Q1. What is a Lambda Expression ? What's its use ? Core Java
Ans. Its an anonymous method without any declaration.
Lambda Expression are useful to write shorthand Code and hence saves the effort of writing lengthy Code.
It promotes Developer productivity, Better Readable and Reliable code. Sample Code for lambda Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   java8   lambda expression   architecture Asked in 58 Companies expert   frequent Try 1 Question(s) TestAdvanced level question frequently asked in US based companies. Recently asked in EMC and Intuit. Q2. Can you provide some implementation of a Dictionary having large number of words ? Solution
Ans. Simplest implementation we can have is a List wherein we can place ordered words and hence can perform Binary Search.
Other implementation with better search performance is to use HashMap with key as first character of the word and value as a LinkedList.
Further level up, we can have linked Hashmaps like ,
hashmap {
a ( key ) -> hashmap (key-aa , value (hashmap(key-aaa,value)
b ( key ) -> hashmap (key-ba , value (hashmap(key-baa,value)
....................................................................................
z( key ) -> hashmap (key-za , value (hashmap(key-zaa,value)
}
upto n levels ( where n is the average size of the word in dictionary. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   collections   hashmap   binary search   search algorithm   advanced   architecture   data structure Asked in 6 Companies   frequent Try 1 Question(s) TestVery frequently asked if being interviewed for hibernate. Frequently asked in Tata Consultancy (TCS) and Overstock.com Q3. Difference between load and get ? Hibernate
Ans. If id doesnt exist in the DB load throws an exception whereas get returns null in that case.get makes the call to DB immediately whereas load makes the call to proxy. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  hibernate Asked in 16 Companies basic   frequent Q4. What is the use of constructors in Java ? Core Java
Ans. Constructors are used to initialize the state of an object. If there are no constructor , objects won't have any initialized state and hence it's elements may contain garbage values. If the memory were used as is, the behavior of the object would also be unpredictable. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  constructor Asked in 5 Companies This question was recently asked at 'Dell'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  producer consumer problem  multi-process synchronization problem Asked in 1 Companies This question was recently asked at 'Adella software'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  debug Asked in 1 Companies basic Ans. The interface is a mechanism to achieve abstraction. Interfaces can have abstract methods and variables. It cannot have a method body. Sample Code for interface Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interface Asked in 1 Companies basic   frequent Q8. Which is the best collections for maintaining elements in an order ? Core Java
This question was recently asked at 'Dell'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies