Tuesday 2 August 2011

TWO MARK QUESTIONS(3.08.2011 TEST)


Questions:
1.Define string comparision methods
2. How many objects are in the memory after the exection of following code segment? 
   
String str1 = \"ABC\";
    String str2 = \"XYZ\";
    String str1 = str1 + str2; 
3.Define StringBuilder and StringBuffer.
4. What is the importance of == and equals() method with respect to String object?
5. Explain the concept of abstract classes and methods.
6. Define Class and Object.
7. What is a super class and how can you call a super class?
8. Types of comments.
9. Define Abstract method.
10. What is Message Passing.
11.Define package.Explain static imports and class imports.
12.Three ways to implement the polymorphism.
13.What are the three characteristics of object.
14.Define final keywords.(all types).Give  any two example classes of predefined final class.
15.Syntax of inheriting interface.

No comments:

Post a Comment