🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Java Data Types: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What does this print? (code)
  2. Q2. What does this print? (code)
  3. Q3. Which line does NOT compile?
  4. Q4. What does this print? (code)
  5. Q5. Which converts the String "42" into an int?
  6. Q6. What does this print? (code)
  7. Q7. What does this print? (code)
  8. Q8. Which statement about var count = 10; is true?
  9. Q9. Which conversion happens automatically, without a cast?
  10. Q10. What happens with this code? (code)