← All topics
Quiz: Java Introduction: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What does the javac command produce?
- Q2. What does this print? (code)
- Q3. Which one do you need to WRITE and compile Java programs?
- Q4. What makes Java "write once, run anywhere"?
- Q5. What does this print? (code)
- Q6. What does this print? (code)
- Q7. Which method does the JVM look for to start a program?
- Q8. A file named Main.java contains public class Hello { ... }. What happens when you run javac Main.java?
- Q9. Bytecode is the same on every operating system. What about the JVM itself?
- Q10. Which kind of comment is read by the javadoc tool to create documentation?