Which of the following is NOT an implicit conversion?
Correct
Incorrect
Question 6 of 15
6. Question
Which keyword is used for explicit type conversion in Java?
Correct
Incorrect
Question 7 of 15
7. Question
What will be the result of:
byte b = 127; b++; System.out.println(b);
Correct
Incorrect
Question 8 of 15
8. Question
Which is safer – widening or narrowing conversion?
Correct
Incorrect
Question 9 of 15
9. Question
What happens if you cast a large `double` to `int` in Java?
Correct
Incorrect
Question 10 of 15
10. Question
Which of the following conversions is allowed implicitly?
Correct
Incorrect
Question 11 of 15
11. Question
What is the output of:
char ch = ‘A’; int code = ch; System.out.println(code);
Correct
Incorrect
Question 12 of 15
12. Question
Which data type has the highest precision in Java?
Correct
Incorrect
Question 13 of 15
13. Question
What will be stored in `int x = (int) 3.999;`?
Correct
Incorrect
Question 14 of 15
14. Question
Is the following valid?
short s = 10; byte b = s;
Correct
Incorrect
Question 15 of 15
15. Question
What is the range of byte in Java?
Correct
Incorrect
Summary
This quiz on Java Type Conversion tests your understanding of implicit vs explicit casting, data loss during narrowing, and the behavior of Java’s strong typing system. Great for interviews, Java learners, and certification aspirants.
At QuizOrbit, our team specializes in fun, informative quizzes across topics like general knowledge, technology, and entertainment. Boost your knowledge with our expert-designed quizzes.