Showing posts with label Interview questions on collections.. Show all posts
Showing posts with label Interview questions on collections.. Show all posts

Telephonic interview questions2 on java

4th Feb 2014
               Today, I have done another Telephonic interview round with some one client. Almost it took 24 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. Introduce your self.
  2. What are the Object class methods?
  3. What is Encapsulation? and how can we achieve.
  4. What are the Access Modifiers for Encapsulation variables?
  5. Differentiate Abstractions and Interfaces
  6. What is auto-boxing?
  7. How can you convert a String object into Integer?
  8. What is implicit casting?
  9. Explain Collection hierarchy order.
  10. Which collection you use for storing objects into SORTED ORDER?
  11. What is TreeMap?
  12. What are the scopes available in Spring? and what is default scope?
  13. What is the difference between PROTOYPE and REQUEST scope?
  14. Could you please explain BEAN LIFE CYCLE.
  15. How can you configure your Spring init() and destroy() in config file?
  16. What is the difference between JointPoint and PointCut?
  17. What is an Aop? and explain.
  18. How can you configure Aop in spring config file?
  19. What is the difference between Singleton Design pattern and Singleton scope of Spring?


Interview Questions

SONATA:      18th Jan 2014
  1. Write a for loop using java1.5 version.
  2. What is generics? Give an example.
  3. How can you eliminate duplicate id's where employee list contains duplicate id's and sort by employee name.
  4. Why should override hashcode() method?
  5. What is the difference between concatination method and adding elements to the existed object like      Sting s="a";                                                                                                                                     String s="a"+"b"+"c";
  6.                map.put("a",a);                                                                                                                                map.put("b",c);                                                                                                                                map.put("a",b);  it will works or not?

IBS  25th Jan 2014
  1. Create10 Employee objects using HashMap interface and that Employee object should contain   Name, Age, Joblevel, Experience.

IGATE :     25th Jan 2014
  1. What are oops Principles
  2. Write custom Exception with an example
  3. Write a query to retrieve 2nd highest salary employee from employee table
  4. Where shall we get SESSION object? how it will be created?
  5. How can we rollback a transaction either any one of the condition fails in the HIBERANTE
  6. On which basis can we know that the defined exceptions comes under either CHECKED or UNCHECKED exceptions
  7. What will be the output of the below program.
        class A
      {
            public void show()
       }
        class B extends A
      {
            public void show()
       }
      public class inheritence
      {
            public static void main(String[] a)
            {
                   A a=new B();
                      a.show();
                   A a=new A();                 
                     a.show();
                  B b=new B();                   
                        b.show();
               }
       }