exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 27 discussion

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

Given:

What is the result?

  • A. C B A
  • B. C
  • C. A B C
  • D. Compilation fails at line n1 and line n2
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
M_Jawad
Highly Voted 4 years, 11 months ago
the super method is called by default : first : constructor A is called. second : constructor B . Finally constructor C.
upvoted 14 times
...
M_Jawad
Highly Voted 4 years, 11 months ago
Answer is C
upvoted 7 times
...
vic88
Most Recent 2 weeks ago
Selected Answer: C
answer is c
upvoted 1 times
...
AhmadTechie
1 year ago
Answer is C compiler add super() as first statement in constructor . hence super class constructor gets called and super class initialized before child class
upvoted 1 times
...
duydn
1 year, 3 months ago
Selected Answer: C
super() added by JVM -> C is the correct one.
upvoted 1 times
...
Dolly2901
1 year, 5 months ago
by default compiler puts super() at first line inside any constructor. It calls it's super class constructor first. So correct Answer is ABC
upvoted 1 times
...
Vicky_65
1 year, 8 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
jjgry
1 year, 9 months ago
Selected Answer: C
all constructors call empty super constructor by default, before executing their own code
upvoted 1 times
...
SSJ5
3 years, 8 months ago
Correct answer is C
upvoted 3 times
...
mete23
4 years, 10 months ago
The correct answer is C class A { public A() { System.out.println("A "); } } class B extends A { public B() { System.out.println("B "); } } class C extends B { public C() { System.out.println("C "); } public static void main(String[] args) { C c = new C(); } }
upvoted 2 times
...
v323rs
4 years, 11 months ago
The correct answer is C "A B C"
upvoted 3 times
...
Mamlouk_Med
5 years, 9 months ago
correct, implecit super() method execution before each system.out.println of each constructor
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