

- HIBERNATE INTERVIEW QUESTIONS FOR 8 YEARS EXPERIENCE HOW TO
- HIBERNATE INTERVIEW QUESTIONS FOR 8 YEARS EXPERIENCE MANUAL
What are types of garbage collectors in java?
HIBERNATE INTERVIEW QUESTIONS FOR 8 YEARS EXPERIENCE MANUAL
Programmer does not have to do manual garbage collection like C or C++. Unused object means object is not being referred by any part of program and is eligible for garbage collection. Garbage collection is the process of identifying used and unused objects on java heap and removing unused object from the heap.Ī live object means an object is still being referred to some part of program. Similarly, If you have too many long-lived objects, then you might need to increase the size of tenure space by putting high value of NewRatio. You can provide arguments XX:NewRatio=1 to distribute 50% to young generation and 50% to old.īy default, NewRatio=2 hence young Generation is 1/3 of total heap. If you have lots of temporary objects then there will be lot of minor gc.
HIBERNATE INTERVIEW QUESTIONS FOR 8 YEARS EXPERIENCE HOW TO
How to decide young generation and old generation size for your application? We have implemented Employee’s hashcode and equals method using name and age attributes, so when you put emp1 as key in hashmap, it will use hashcode and equals method and will be put in HashMap.Īfter putting emp1 in HashMop, we have changed name of the employee, so when you will try to retrieve element from HashMap using hm.get(emp1), you won’t be able to get object which we have put earlier and it will return null.ĩ. If you are looking for the below queries then this post will help you as well. When you have 5 years of experience as java developer, you need to have a good understanding of collections, multithreading concepts. In this post, we will see Java interview questions for 5 to 6 years experience. How will you detect memory leak in your application? Have you worked on Serialization? Can you tell difference between Serializable and ( “Externalizable”)? Have you worked on Java 8? Can you share major changes in Java 8? Write a program to implement producer-consumer problem using BlockingQueue? What is double level locking in singleton design pattern? Which design pattern you have used in your project? Write a program to print odd even numbers using threads in sequence? What is difference between Collection.synchronizedMap(map) and ConcurrentHashMap? What will happen in case of below program?

