Java Interview Questions
Q1. Java was developed by
(a) Apple
(b) IBM
(c) Ericsson
(d) Sun Microsystems
Answer: (d) Sun Microsystems
Q2. In which year Java programming language was developed
(a) 1991
(b) 1993
(c) 1995
(d) 1996
Answer: (a) 1991
Q3. Which one was the initial name of Java
(a) Oak
(b) CDL
(c) CS-4
(d) Usenet
Answer: (a) Oak
Q4. Which one is correct — “java is a _________”
(a) platform dependent language
(b) platform independent language
(c) OS dependent language
(d) OS independent language
Answer: (b) platform independent language
Q5. A special kind of Java program that is designed to be transmitted over the Internet and automatically executed by a Java-compatible web browser is
(a) Servlets
(b) JSP
(c) Applet
(d) Bytecode
Answer: (c) Applet
Q6. Java is a
(a) Static language
(b) Dynamic language
(c) Assembly language
(d) Binary language
Answer: (b) Dynamic language
Q7. A highly optimized set of instructions designed to be executed by the Java run-time system, is called
(a) Objectcode
(b) Bitcode
(c) Bytecode
(d) Floatcode
Answer: (c) Bytecode
Q8. Which one is commonly used to extend the applications hosted by web servers
(a) JSP
(b) IDE
(c) Applet
(d) Servlet
Answer: (d) Servlet
Q9. Java is a _____________
(a) Logic-based language
(b) Stack-based language
(c) Data-structured language
(d) Object oriented programming language
Answer: (d) Object oriented programming language
Q10. The act of representing essential features without including the background details or explanations is called
(a) Abstraction
(b) Polymorphism
(c) Encapsulation
(d) Inheritance
Answer: (a) Abstraction
Q11. Name of the process by which objects of one class acquire the properties of objects of another is called
(a) Information Hiding
(b) Inheritance
(c) Polymorphism
(d) Encapsulation
Answer: (b) Inheritance
Q12. Dynamic binding calls at
(a) Start time
(b) Compile time
(c) Run time
(d) Execution time
Answer: (c) Run time
Q13. Static binding calls at
(a) Start time
(b) Compile time
(c) Process time
(d) Execution time
Answer: (b) Compile time
Q14. Which one was the first browser to support Java applets
(a) Internet Explorer
(b) Safari
(c) HotJava
(d) NetJava
Answer: (c) HotJava
Q15. Which one is not a Java Comment type
(a) Single line comment
(b) Two line comment
(c) Multi line comment
(d) Documentation comment
Answer: (b) Two line comment
Practice Test Exam