Core Java Multiple Choice Questions and Answers pdf

Java Multiple Choice Questions and Answers for freshers and experienced pdf
1. ______ is the ability of an Java application to perform multiple tasks at the same time.
2. Java is designed for the distributed environment of the Internet, because it handles ______ protocols
3. Java is associated with _______ programming Language.
4. Which of the following is Java keyword?
5. A compiler converts the Java program into an intermediate language representation called
6. ______ Operator is used to create an object.
7. Which of the following method is used to initialize the instance variable of a class.
8. Java platform consists of JVM and a package of readymade software components this package is known as ______.
9. Which of the following is not a Looping statement _______.
10. _______ is a multi way branch statement
11. Choose the proper operator precedence when evaluating an Expression?
12. The ______ statement is used inside the switch to terminate a Statement sequence
13. A class that is inherited is called a ________.
14. An ______ determines which features of a class may be used by other classes
15. Which property of Java allows the creation of hierarchical classifications?
16. Which of the following is WRONG statement with respect to rules for overriding Methods?
17. The class at the top of the exception classes hierarchy is called ______.
18. Find the keyword which is not used to implement exception
19. Which of the following is not a Exceptions in Java.
20. Which of the following Definitions hold good for Exception?
21. Consider the following program:
What is the name of the java file containing this program?
22. Which of the following is TRUE?
23. Consider the following code snippet
String river = new String(“Columbia”);
System.out.println(river.length());
What is printed?
24. A constructor is ____.
25. Which of the following may be part of a class definition?
26. What is different between a Java applet and a Java application?
27. Consider
public class MyClass{
public MyClass(){/*code*/}
// more code...
}
To instantiate MyClass, you would write?
28. The constructor of MyClass should be defined as
public void MyClass(){/*code*/}
What is byte code in the context of Java?
29. What is garbage collection in the context of Java?
30. You read the following statement in a Java program that compiles and executes.

0 comments: