QuestionQ78

Working with Java Data Types

Given the following:

Question Image

What is the output?

  • A
  • B
  • C
  • D
Explanation

Java instance fields are automatically initialized to their default values. A char defaults to the null character, which is not visibly rendered by println; a boolean defaults to false; and a float defaults to 0.0.

Community Discussion

No comments yet. Be the first to start the discussion!