Time : 450 sec
1. main feature of java?
1. power full
2. robust
3. easy to use
4. platform independence
2. which one is not a an object oriented programming concept?
1. Threads
2. Polymorphism
3. Encapsulation
4. Inheritance
3. The ability to take more than one form is called polymorphism.
1. true
2. false
4. What is Abstract class?
1. not fully implemented.
2. class used to handle the exceptions.
3. class used to handle the threads
4. class used to clean the objects
5. We can create an Object for Abstract class?
1. true
2. false
6. where can we use final?
1. for varibles
2. for methods
3. for classes
4. all of the above.
7. What are the modifiers applicable for variables in Interface?
1. Public
2. static
3. final.
4. all of the above
8. What is The first statement of Constructor?
1. only this()
2. only super()
3. either this() or super().
4. we can keep anything.
9. What are the modifiers that are not applicable for the Local Variable?
1. static
2. public
3. private
4. all of the above.
10. What is correct statement about static variable in java?
1. static variables are class level variables.
2. they are common to all objects.
3. by using 'static' key word we define the static variables
4. all of the above.
11. How many arguments can be taken by catch block.
1. only one.
2. only two.
3. either one or two
4. any number of arguments.
12. How many number of catch blocks can be associate to one try block?
1. only one.
2. only two.
3. either one or two
4. any number of arguments.
13. Which one is not checked Exception?
1. ClassNotFoundException
2. FileNotFoundException
3. CloneNotSupportedExceptions.
4. ArithmeticExcetion
14. Which class is the super class of all classes?
1. java.lang.Object class
2. Number Class
3. Abstract Class
4. Thread Class
15. which method does not exist in Object class?
1. toString();
2. equals();
3. sleep();
4. finalize();