| Exam Code/Number: | 1Z1-804Join the discussion |
| Exam Name: | Java SE 7 Programmer II Exam |
| Certification: | Oracle |
| Question Number: | 150 |
| Publish Date: | May 29, 2026 |
|
Rating
100%
|
|
You have been asked to create a ResourceBundle file to localize an application.
Which code example specifies valid keys menu1 and menu2 with values of File Menu and View Menu?
Given the fragment: If thread a and thread b are running, but not completing, which two could be occurring?
The two methods of code reuse that aggregate the features located in multiple classes are ____________ ?
Given:
What is the result?
Given:
public class Main {
public static void main(String... ag) {
Vehicle v = new SportsCar();
System.out.println(v.goes());
Tank t = (Tank) v;
System.out.println(t);
}
}
class Vehicle {
public String goes() {
return "goes ";
};
}
class SportsCar extends Vehicle {
public String goes() {
return "fast ";
};
}
class Tank extends Vehicle {
public String goes() {
return "slow ";
}; }
What is the result?