Oracle
1Z0-803 · Question #243
1Z0-803 Question #243: Real Exam Question with Answer & Explanation
The correct answer is D: c =. See the full explanation below for the reasoning.
Question
Given: public class FieldInit { char c; boolean b; float f; void printAll() { System.out.println("c = " + c); System.out.println("c = " + b); System.out.println("c = " + f); } public static void main(String[] args) { FieldInit f = new FieldInit(); f.printAll(); } } What is the result?
Options
- Ac = null
- Bc = 0
- Cc = null
- Dc =
Community Discussion
No community discussion yet for this question.