Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers for 'Geometric' - 3 question(s) found - Order By Newest | ||||
Frequently asked question in companies using hibernate. | ||||
| ||||
Ans. 1. First level cache is enabled by default whereas Second level cache needs to be enabled explicitly. 2. First level Cache came with Hibernate 1.0 whereas Second level cache came with Hibernate 3.0. 3. First level Cache is Session specific whereas Second level cache is shared by sessions that is why First level cache is considered local and second level cache is considered global. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  hibernate   orm   hibernate cache   architecture   technical lead   first level cache vs second level cache Asked in 18 Companies Intermediate   frequent | ||||
Related Questions | ||||
How to configure second level cache in Hibernate ? | ||||
What are some differences between Spring caching and Hibernate caching? | ||||
What is the use case for AWS Gateway cached , stored and VTL ? | ||||
What are the the methods to clear cache in Hibernate ? | ||||
What are different types of second level cache ? | ||||
Can we disable first level cache ? What should one do if we don't want an object to be cached ? | ||||
Have you ever faced any problem due to caching? | ||||
Can you please provide an implementation of application level cache ? | ||||
Implement an LRU Cache ? | ||||
| ||||
Ans. ConcurrentHashMap is a hashMap that allows concurrent modifications from multiple threads as there can be multiple locks on the same hashmap. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   collections   hashmap   map   concurrenthashmap   concurrenthashmap  concurrency   general electric   ge Asked in 32 Companies   rare | ||||
Related Questions | ||||
What is ConcurrentModificationException ? | ||||
What is a BlockingQueue? | ||||
What is concurrent interface ? | ||||
What is ConcurrentLinkedDeque ? | ||||
What is CopyOnWriteArrayList ? | ||||
What are the advantages and disadvantages of CopyOnWriteArrayList ? | ||||
Name few Concurrent Collection Classes ? | ||||
Difference between concurrentHashMap and HashTable ? | ||||
isnt the use of HashTable and ConcurrentHashMap the same, i.e providing synchronized map collection ? | ||||
Frequently asked in face to face interviews. | ||||
| ||||
Ans. int count = 15; int[] fibonacci = new int[count]; fibonacci[0] = 0; fibonacci[1] = 1; for(int x=2; x < count; x++){ fibonacci[x] = fibonacci[x-1] + fibonacci[x-2]; } for(int x=0; x< count; x++){ System.out.print(fibonacci[x] + " "); } | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  ebay   fibonacci series Asked in 66 Companies basic   frequent | ||||
Related Questions | ||||
What are the steps to be performed while coding Junit with Mocking framework ? | ||||
What is a Sequence File? | ||||
What different level of logging you use while coding ? | ||||
Have you ever encoded the response before sending it back from the service? If Yes , Which encoding was used ? | ||||
What are the different type of encoding you have used ? | ||||
How does encoding affect using Reader / writer classes or Stream classes in Java ? | ||||
What is the difference between html encoding and url encoding ? | ||||
Does spaces get's encoded in html encoding ? | ||||