exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 220 discussion

Actual exam question from Oracle's 1z0-808
Question #: 220
Topic #: 1
[All 1z0-808 Questions]

Given:

What is the result?

  • A. c=null b=true f=0.0
  • B. c= b=false f=0.0
  • C. c=null b=false f=0.0
  • D. c=0 b=false f=0.0F
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ManuTov
3 months, 1 week ago
Another repeated question its the same as nº 166.
upvoted 1 times
...
DriftKing
3 months, 4 weeks ago
Selected Answer: C
Answer is C. c=null b=false f=0.0 public class FieldInit{ Character c; boolean b; float f; void printAll() { System.out.println("c = "+c); System.out.println("b = "+b); System.out.println("f = "+f); } public static void main(String[] args) { FieldInit f = new FieldInit(); f.printAll(); } }
upvoted 1 times
...
iSnover
1 year, 3 months ago
Selected Answer: C
The answer is the letter C. The default value of a Character is null because it is not primitive and every type that is not primitive has its default value (null), the default value of a boolean is false and the default value is a float is 0.0
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago