# 1z0-809 — Question 603

**Type:** multiple_choice
**Topics:** topic_1

## Question

Given the definition of the Vehicle class:
Class Vehhicle {
int distance; //line n1
Vehicle (int x) {
this distance = x;
}
public void increSpeed(int time) { //line n2
int timeTravel = time; //line n3
class Car {
int value = 0;
public void speed () {
value = distance /timeTravel;
System.out.println ("Velocity with new speed"+value+"kmph");
}
}
new Car().speed();
}
}
and this code fragment:
Vehicle v = new Vehicle (100);
v.increSpeed(60);
What is the result?

Velocity with new speed -

## Correct Answer

_See scenario._

## Explanation

Answer is "Velocity with new speed1kmph"

**Reference:** examtopics_top_comment

---
Source: https://hiexam.net/q/oracle/1z0-809/603  
Practice (tracked): https://hiexam.net/study/1z0-809/practice