exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 179 discussion

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

Given:

What is the result?

  • A. Compilation fails.
  • B. false true
  • C. true false
  • D. true true
  • E. false false
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
carloswork
2 months, 2 weeks ago
Selected Answer: C
Answer is C. To test: public class Test { public static void main(String[] args) { Test ts = new Test(); System.out.print(isAvailable + " "); isAvailable = ts.doStuff(); System.out.println(isAvailable); } public static boolean doStuff() { return !isAvailable; } static boolean isAvailable = true; }
upvoted 1 times
...
iSnover
3 months ago
Selected Answer: C
The answer is the letter C "True False" and there's not much to say about it, it's pretty basic. Just be aware that there is a similar issue where the default value of the variable "isAvaliable" is false. Try to understand the code instead of memorizing the answer, if the same or similar question falls on the test, analyze it well before marking the answer so you don't miss a question for free.
upvoted 1 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