SAP Labs java interview
Home Java Interview Questions Revision Notes Resources Interview Tips Interview Samples

Valid HTML 4.01 Transitional

SAP Labs Java interview
Company SAP Labs
Mode Telephonic
Contributed By Noothan Prabha
Candidate's Profile 3 yrs experience in Java/J2EE (Especially jsp,servlets,Struts).





Question : Tell us about yourself?
Answer : explained...

Question : Explain about your current project.
Answer : explained...

Question : 3 to 4 questions were asked on the project.
Answer : answered...

Question : What is Java?
Answer : Java is a High Level Object oriented Programming Language.

Question : What are the features of Java?
Answer : Polymorphism,Encapsulation,Inheritance...

Question : Explain Overloading and Overriding with examples.?
Answer : When more than one method exists with the same name in the class but with different arguments then it is called method overloading. When a method in the sub-class with the name as parent class gives a different behaviour then it is called method overriding.

Question : Can overloading have same method name, same signatue and different return types?
Answer : No.

Question : Explain the difference between Abstact Class & Interfaces?
Abstract Classes:
  • Have executable methods and abstract methods.
  • Can only subclass one abstract class.
  • Can have instance variables, constructors and any visibility: public, private, protected, none (aka package).
    Interfaces
  • Have no implementation code. All methods are abstract.
  • A class can implement any number of interfaces.
  • Cannot have instance variables, constructors and can have only public and none (aka package) visibility.

    Question : When to use an abstract class?
    Answer : In case where you want to use implementation inheritance then it is usually provided by an abstract base class. Abstract classes are excellent candidates inside of application frameworks. Abstract classes let you define some default behaviour and force subclasses to provide any specific behaviour.

    Question : When to use Interfaces?
    Answer : When the client wants to only deal with a type and does not care about the actual implementation then we should use interfaces. As i said earlier, abstract classes should be used if a consistent behaviour is required across object hierarchy or for partial implementation.

    Question : Explain the Java collection framework.
    Answer : explained...

    Question : Difference between ArrayList & Linked List?
    Answer : An ArrayList is a List implementation backed by a Java array, similar to the Vector class. As the number of elements in the collection increases, the internal array grows to fit them. If there are lots of growth periods, performance degrades as the old array needs to be copied into the new array. However, random access is very quick as it uses an array index to access.
    With a LinkedList, the List implementation is backed by a doubly linked list data structure, allowing easy inserts/deletions anywhere in the structure, but really slow random accesses as the access must start at an end to get to the specific position.

    Question : When to use LinkedList & When to use Array List?.
    Answer : If you want to add and remove the elements frequently then use LinkedList , for simple retrieve use ArrayList because for simple retrieval ArrayList is faster than LinkedList.

    Question : What is synchronization?
    Answer : Syncronization is the process of controling the access of multiple threads to a shared resource.

    Question : Did you implement synchronization in your project?
    Answer : No we did not use threads so no synchronizattion.

    Question : What are the likes & dislikes of the present company?
    Answer : ....

    Question : What you know about SAPLabs?
    Answer : .....


    If you wish to share your interview experience, send us the entire interview questions with answers to j2eeguide@yahoo.com. The questions should be in the same order as it was asked in the interview. We will review your interview stream for originality and correctness, after which the stream will be uploaded.

    java j2ee interview guide IF YOUR INTERVIEW SUBMISSION IS SELECTED, YOU WILL RECEIVE A PRINTED COPY OF "Java J2EE Interview Guide" ABSOLUTELY FREE!!!.

    Rules
  • This offer is available only for contributors from India.
  • Java J2EE Interview Guide consists of the entire material hosted at JGuide.org.
  • The content sent by the contributor becomes the property of JGuide.org.
  • Shipping charges will be borne by JGuide.org
  • This offer can be withdrawn without any prior notice.
  • The decision of the JGuide team will be final.




    Pls send your questions, suggestions and feedback to j2eeguide@yahoo.com

    © Copyright JGuide 2006, All Rights Reserved.