Q2) What is singleton design pattern? How will you make ensure that class is singleton. If singleton class implements serializable interface and we are serializing the class then on deserializing a new object of singleton class will be created (as deserialization process creates new object), in this scenario how will you make sure that deserilazation process will not create a new object of the class?
Q3) What design pattern you see in java collestions?
Q4) What is ConcurrnetModificationException?
Q5) Can static method be abstract?
Q6) Why we can not declare abstract methods as static?
Q7) What is difference between forward and send redirect and which one is faster?
Q8) What is the purpose of serialization in java?
Q8) What is the role of serialVersionUID in serialization process?
Q9) What happens when an object is serialized and then a changes is made in the member variable of the class and later on the earlier serialized object is de-serialized?
Q10) How do you achieve version control in hibernate?
Q11) Why would you use a synchronized block v. synchronized methos?
Q12) What is difference between static block and init block?
Q13) Why static methods cannot access non static variables or methods?
Q14) What modifiers are allowed for methods in an Interface?
Q15) What is difference between iterator access and index access?
Q16) How will you sort a collection of String in case sensitive order?
Q17) Arrange in the order of speed - HashMap, HashTable, Collections.synchronizedMap, ConcurrentHashmap
Q18) What is the purpose of overriding finalize() method?
Q19) What is difference between include and forward?
Q20) What is Servlet Container?
Good Questions Sir Ji..
ReplyDeletePlease keep it up......
Thankyou Sir Ji....
DeleteAll the above questions have been asked to me in interview's :)