🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. What does the javac command produce?
  2. Q2. What does this print? (code)
  3. Q3. Which one do you need to WRITE and compile Java programs?
  4. Q4. What makes Java "write once, run anywhere"?
  5. Q5. What does this print? (code)
  6. Q6. What does this print? (code)
  7. Q7. Which method does the JVM look for to start a program?
  8. Q8. A file named Main.java contains public class Hello { ... }. What happens when you run javac Main.java?
  9. Q9. Bytecode is the same on every operating system. What about the JVM itself?
  10. Q10. Which kind of comment is read by the javadoc tool to create documentation?