1. Who is known as father of Java Programming Language?
A. James Gosling
B. M. P Java
C. Charel Babbage
D. Blais Pascal
Answer: A
B. M. P Java
C. Charel Babbage
D. Blais Pascal
Answer: A
2. Which of the following option leads to the portability and security of Java?
A. Bytecode is executed by JVM
B. The applet makes the Java code secure and portable
C. Use of exception handling
D. Dynamic binding between objects
Answer: A
3. Which of the following is not a Java features?
A. Dynamic
B. Architecture Neutral
C. Use of pointers
D. Object-oriented
Answer: C
4. The \u0021 article referred to as a
A. Unicode escape sequence
B. Octal escape
C. Hexadecimal
D. Line feed
Answer: A
5) _____ is used to find and fix bugs in the Java programs.
A. JVM
B. JRE
C. JDK
D. JDB
Answer: D
6) Which of the following is a valid declaration of a char?
A. char ch = '\utea';
B. char ca = 'tea';
C. char cr = \u0223;
D. char cc = '\itea';
Answer: A
7) What is the return type of the hashCode() method in the Object class?
A. Object
B. int
C. long
D. void
Answer: B
8) Which of the following is a valid long literal?
A. ABH8097
B. L990023
C. 904423
D. 0xnf029L
8) Which of the following is a valid long literal?
A. ABH8097
B. L990023
C. 904423
D. 0xnf029L
Answer: D
9) What does the expression float a = 35 / 0 return?
A. 0
B. Not a Number
C. Infinity
D. Run time exception
Answer: C
No comments:
Post a Comment