Introduction to java programming
Java short answer questions
1. What type of programming language is Java?
2. Name two object-oriented features that Java provides, similar to C++.
3. Why is Java considered a dominant programming language?
4. Mention two applications where Java can be used.
5. What career benefits does learning Java offer
6. What is the main role of the Java compiler in JDK?
7. List any three tools included in the JDK.
8. Why does a programmer need JDK instead of JRE alone?
9. What is the purpose of the tool javap in JDK?
10. Which JDK tool is used for generating documentation?
11. What does the term Write Once, Run Anywhere (WORA) mean in Java?
12. What is the role of JVM in executing Java programs?
13. How does the JVM differ from compilers in other programming languages?
14. What is the function of the Just-in-Time (JIT) compiler in JVM?
15. Name any three components included in the JVM.
16. What is the primary function of JRE?
17. How does JRE differ from JDK?
18. Why is JRE essential for running Java applets?
19. Mention two package classes included in JRE.
20. List any two types of files found in JRE.
Reference
Gosling, J., Joy, B., Steele, G., & Bracha, G. (2014). The Java Language Specification (Java SE 8
Edition). Addison-Wesley.