exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 79 discussion

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

Given:

What is the result?

  • A. An exception is thrown at runtime.
  • B. Initialized Started Initialized
  • C. Initialized Started
  • D. Compilation fails.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
JoseCG
Highly Voted 4 years ago
Correct answer: Compilation fails, why? init() and start() are private methods of the Caller class. So TestCall can't access to them.
upvoted 18 times
Zafar_Nasim
3 years, 8 months ago
Also Caller c=new Caller(); should be used
upvoted 7 times
devysf
2 years, 6 months ago
i think, that usage is typo. We can ignore it. But i wonder that oracle test typo like that?
upvoted 2 times
...
...
...
v323rs
Highly Voted 4 years ago
Agree, the correct answer D. Compilation fails.
upvoted 5 times
...
Sreeni_A
Most Recent 5 months, 2 weeks ago
Correct answer is D
upvoted 1 times
...
akbiyik
1 year, 2 months ago
start() and init() functions of Caller are having private modifier. They are not accessible from outside of class.
upvoted 2 times
...
carloswork
1 year, 3 months ago
Selected Answer: D
Answer is D. To test: class Caller { private void init () { System.out.println("Initialized"); } private void start () { init(); System.out.println("Started"); } } public class Test { public static void main(String[] args) { Caller c = new Caller(); c.start(); c.init(); } }
upvoted 1 times
...
Mthlagi
1 year, 11 months ago
Caller c new Caller(); if this line it is like this then the correct answer is Initialized Started Initialized
upvoted 1 times
Mthlagi
1 year, 11 months ago
Caller c = new Caller();
upvoted 1 times
...
...
brianhuang881215
2 years, 5 months ago
DCUPs good
upvoted 2 times
...
Surendra88
2 years, 6 months ago
start() and init() functions of Caller are having private modifier. which is not accessible from outside of class. So, compilation Error (D answer)
upvoted 2 times
...
SSJ5
2 years, 10 months ago
Answer is D
upvoted 1 times
...
syddanialshz75
4 years, 2 months ago
Correct
upvoted 3 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