Question 53 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 53 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given:

class Vehicle {
int x;
vehicle () {
this(10); // line ni
)
Vehicle (int x) {
this. = x;
)
)

class Car extends Vehicle {
int
carQ {
super ();
this (20); // line n2

)
Car (int y) {
this.y

}
public string tostring() {
return super.x + ":" + this.y;
}
}

And given the code fragment
And given the code fragment

Vehicle y = new Car();
System. out. printin(y);

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.