Oracle Java SE 8 Programmer II (1z0-809日本語版) - 1z0-809日本語 Free Exam Questions

QUESTION NO: 1
与えられた:
class FuelNotAvailException extends Exception { }
class Vehicle {
void ride() throws FuelNotAvailException {//line n1
System.out.println("Happy Journey!");
}
}
class SolarVehicle extends Vehicle {
public void ride () throws FuelNotAvailException {//line n2
super ride ();
}
}
そしてコードの断片:
public static void main (String[] args) throws Exception {
Vehicle v = new SolarVehicle ();
v.ride();
}
どの変更により、コードフラグメントはHappy Journey !?を出力できますか?

Correct Answer: D Vote an answer
QUESTION NO: 2
JDBC3.0を使用してデータベースドライバーをロードするには、どのアクションを使用できますか?

Correct Answer: A Vote an answer
QUESTION NO: 3
コードの断片を考えると:
String str = "Java is a programming language";
ToIntFunction<String> indexVal = str: : indexOf; //line n1
int x = indexVal.applyAsInt("Java");//line n2
System.out.println(x);
What is the result?

Correct Answer: A Vote an answer
QUESTION NO: 4
与えられた:
public class Canvas implements Drawable {
public void draw () { }
}
public abstract class Board extends Canvas { }
public class Paper extends Canvas {
protected void draw (int color) { }
}
public class Frame extends Canvas implements Drawable {
public void resize () { }
abstract void open ();
}
public interface Drawable {
public abstract void draw ();
}
どの文が真実ですか?

Correct Answer: B Vote an answer
QUESTION NO: 5
与えられた条件:

そしてコードフラグメント:

candlist に Candidate オブジェクトが含まれていると仮定すると、どのコード フラグメントが NewYork の候補者の平均年齢を計算しますか。

Correct Answer: C Vote an answer
QUESTION NO: 6
コードの断片を考えると:
public static void main (String [ ] args) throws IOException {
BufferedReader br = new BufferedReader (new InputStremReader
(System.in));
System.out.print ("Enter GDP: ");
//line 1
}
Which code fragment, when inserted at line 1, enables the code to read the GDP from the user?

Correct Answer: B Vote an answer
QUESTION NO: 7
コードの断片を考えると:
class MyThread implements Runnable {
private static AtomicInteger count = new AtomicInteger (0);
public void run () {
int x = count.incrementAndGet();
System.out.print (x+" ");
}
}
and
Thread thread1 = new Thread(new MyThread());
Thread thread2 = new Thread(new MyThread());
Thread thread3 = new Thread(new MyThread());
Thread [] ta = {thread1, thread2, thread3};
for (int x= 0; x < 3; x++) {
ta[x].start();
}
Which statement is true?

Correct Answer: A Vote an answer
QUESTION NO: 8
コードの断片を考えると:
List<String> colors = Arrays.asList("red", "green", "yellow");
Predicate<String> test = n - > {
System.out.println("Searching...");
return n.contains("red");
};
colors.stream()
.filter(c -> c.length() > 3)
.allMatch(test);
What is the result?

Correct Answer: B Vote an answer
QUESTION NO: 9
与えられた:
class UserException extends Exception { }
class AgeOutOfLimitException extends UserException { }
and the code fragment:
class App {
public void doRegister(String name, int age)
throws UserException, AgeOutOfLimitException {
if (name.length () <= 60) {
throw new UserException ();
} else if (age > 60) {
throw new AgeOutOfLimitException ();
} else {
System.out.println("User is registered.");
}
}
public static void main(String[ ] args) throws UserException {
App t = new App ();
t.doRegister("Mathew", 60);
}
}
結果は何ですか?

Correct Answer: D Vote an answer
QUESTION NO: 10
Given:

What is the result?

Correct Answer: C Vote an answer

QUALITY AND VALUE

Actual4test Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.

Tested and Approved

We are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.

Easy to Pass

If you prepare for the exams using our Actual4test testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.

Try Before Buy

Actual4test offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.