최신 1Z0-803日本語 무료덤프 - Oracle Java SE 7 Programmer I (1Z0-803日本語版)
Given:
public class Test { public static void main(String[] args) { int ax = 10, az = 30; int aw = 1, ay = 1; try { aw = ax % 2; ay = az / aw; } catch (ArithmeticException e1) { System.out.println("Invalid Divisor"); } catch (Exception e2) { aw = 1; System.out.println("Divisor Changed"); } ay = az /aw; // Line 14 System.out.println("Succesful Division " + ay);
}
}
public class Test { public static void main(String[] args) { int ax = 10, az = 30; int aw = 1, ay = 1; try { aw = ax % 2; ay = az / aw; } catch (ArithmeticException e1) { System.out.println("Invalid Divisor"); } catch (Exception e2) { aw = 1; System.out.println("Divisor Changed"); } ay = az /aw; // Line 14 System.out.println("Succesful Division " + ay);
}
}
정답: C
public class Equal {
public static void main(String[] args) {
String str1 = "Java";
String[] str2 = {"J","a","v","a"};
String str3 = "";
for (String str : str2) {
str3 = str3+str;
}
boolean b1 = (str1 == str3);
boolean b2 = (str1.equals(str3));
System.out.print(b1+", "+b2);
정답: A
class Overloading {
int x(double d) {
System.out.println("one");
return 0;
}
String x(double d) {
System.out.println("two");
return null;
}
double x(double d) {
System.out.println("three");
return 0.0;
}
public static void main(String[] args) {
new Overloading().x(4.0);
}
}
정답: A
System.out.printIn ("Result: " +3+5);
System.out.printIn ("Result: " + (3+5));
정답: C
Given:
정답: D
Given:
interface Pet { }
class Dog implements Pet { }
public class Beagle extends Dog{ }
interface Pet { }
class Dog implements Pet { }
public class Beagle extends Dog{ }
정답: A,D,F
정답: B
Given:
public class SampleClass {
public static void main(String[] args) {
AnotherSampleClass asc = new AnotherSampleClass(); SampleClass sc = new SampleClass();
sc = asc;
System.out.println("sc: " + sc.getClass());
System.out.println("asc: " + asc.getClass());
}}
class AnotherSampleClass extends SampleClass {
}
public class SampleClass {
public static void main(String[] args) {
AnotherSampleClass asc = new AnotherSampleClass(); SampleClass sc = new SampleClass();
sc = asc;
System.out.println("sc: " + sc.getClass());
System.out.println("asc: " + asc.getClass());
}}
class AnotherSampleClass extends SampleClass {
}
정답: D
정답: C
정답: A
정답: A
Given:
class X {}
class Y { Y ( ) { } }
class Z { Z (int i ) { } }
class X {}
class Y { Y ( ) { } }
class Z { Z (int i ) { } }
정답: G
for ( expr1 ; expr2 ; expr3 ) {
statement;
}
정답: C,D
정답: A
정답: B
정답: A