1z0-808 無料問題集「Oracle Java SE 8 Programmer I」
Given these requirements:
- Bus and Boat are Vehicle type classes.
- The start() and stop() methods perform common operations across the
Vehicle class type.
- The ride() method performs a unique operations for each type of
Vehicle.
Which set of actions meets the requirements with optimized code?
- Bus and Boat are Vehicle type classes.
- The start() and stop() methods perform common operations across the
Vehicle class type.
- The ride() method performs a unique operations for each type of
Vehicle.
Which set of actions meets the requirements with optimized code?
正解:B
解答を投票する
Given the classes:
* AssertionError
* ArithmeticException
* ArrayIndexOutofBoundsException
* FileNotFoundException
* IllegalArgumentException
* IOError
* IOException
* NumberFormatException
* SQLException
Which option lists only those classes that belong to the unchecked exception category?
* AssertionError
* ArithmeticException
* ArrayIndexOutofBoundsException
* FileNotFoundException
* IllegalArgumentException
* IOError
* IOException
* NumberFormatException
* SQLException
Which option lists only those classes that belong to the unchecked exception category?
正解:C
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
View the Exhibit.
public class Hat {
public int ID =0;
public String name = "hat";
public String size = "One Size Fit All";
public String color="";
public String getName() { return name; }
public void setName(String name) {
this.name = name;
}
}
Given:
public class TestHat {
public static void main(String[] args) {
Hat blackCowboyHat = new Hat();
}
}
Which statement sets the name of the Hat instance?
public class Hat {
public int ID =0;
public String name = "hat";
public String size = "One Size Fit All";
public String color="";
public String getName() { return name; }
public void setName(String name) {
this.name = name;
}
}
Given:
public class TestHat {
public static void main(String[] args) {
Hat blackCowboyHat = new Hat();
}
}
Which statement sets the name of the Hat instance?
正解:A
解答を投票する