Telephonic interview questions3 on java

12th Feb 2014
               Today, I have done another Telephonic interview round with one more client. Almost it took 21 Minutes duration. The following questions which are faced by myself. I hope that these will be very useful to my blog readers(i.e you).

  1. How can we call a constructor from another constructor in a single class?
  2. How can we sort the collection objects?
  3. To print the objects in DESCENDING order which interface or collection i need to be used?
  4. What is the DEFAULT sorting order of collections?
  5. When shall we go for SET or MAP? Explain.
  6. When shall we go for TREEset or TREEmap? Explain.
  7. While implementing sorting logic in HASHMAP, on which basis you will be sort i.e based on keys or values?
  8. What is lazyloading?(in Hibernate)
  9. Differentiate load() and get() methods in Hibernate.
  10. What are the available collections in Hibernate?
  11. can we write more than one catch bock for a try block?
  12. Below code will be compile or not?
             try
               {
                }
              catch(Exception e)
              {
                }
              catch(Null pointer Exception ne)
               {
                    } 

No comments:

Post a Comment