exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 173 discussion

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

Given:



Which statement is true?

  • A. The code prints 10.
  • B. The code fails to compile at line n2.
  • C. The code fails to compile at line n1.
  • D. The code fails to compile at line n4.
  • E. The code fails to compile at line n3.
  • F. The code prints 100.
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
d7bb0b2
6 months, 4 weeks ago
Selected Answer: C
C is correct
upvoted 1 times
...
ASPushkin
8 months, 2 weeks ago
Where can var be used? var can be used for declaring local variables, including index variables of for-loops and resource variables of the try-with-resources statement. var cannot be used for fields, method parameters, and method return types. From Java 11 you can use var in lambda expressions
upvoted 2 times
...
Omnisumem
9 months, 3 weeks ago
Selected Answer: C
Tested: C.
upvoted 1 times
...
Stavok
1 year ago
Selected Answer: C
C is correct
upvoted 2 times
...
KiraguJohn
1 year ago
C var keyword cannot be used for declaring global variables or class-level variables.
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