You are on page 1of 2

1. Maven Life cycle.

2. Java deprecated method(1.5 – 1.7)


3. Different String and Object class .equals () methods
4. HashMap<String ,Integer> m=new HashMap<>()

m.put(“k1”,1);
m.put(“k2”,2);
m.put(“k3”,3);
m.put(“k2”,4);

During the Iterating using Key –

if I do m.put(“k2”,4) then we will get ConcurrentModificationException or no?

5. 1 HashMap if I insert 13th element and call size() method the what will be the value?
6. Is there any methods to set Capacity of the hashmap?
7. HashMap .put(() method return type
8. Set add() method return type?
9. Difference between session.get() and session.load() methods in hibernate.
10. How to call storedprocedure using hibernate.
11. About string class.
12. Custom immutable with and without final keyword
13. Serialization and externalization and why constructor needed in externalization
14. HashMap internal working- if I return 1 from hashcode method then? equals() will call?
15. Which data structure you will use if – existing 1000 of records you want to add 50 th location ?
arraylist or linkedlist.
16. Spring- default scope of a bean?
17. Singleton – different java and spring singleton?
18. In spring If I declare two bean but Id is different ex.
<bean id=a class=A>
<bean id=b class=A>
How can I declare in code, Because some time is need to use “a” and some time I need to use
“b”?
19. Spring transaction management.
20. Hibernate- what is mappedBy
21. Hibernate – Cascad annotation
22. What is volatile keyword
23. What is homogeneous and heterogeneous.

You might also like