← 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 →- Q1. What does this print? (code)
- Q2. What does this print? (code)
- Q3. Which line does NOT compile?
- Q4. What does this print? (code)
- Q5. Which converts the String "42" into an int?
- Q6. What does this print? (code)
- Q7. What does this print? (code)
- Q8. Which statement about var count = 10; is true?
- Q9. Which conversion happens automatically, without a cast?
- Q10. What happens with this code? (code)