최신 1Z1-803日本語 무료덤프 - Oracle Java SE 7 Programmer I (1Z1-803日本語版)
Given:
public class Natural { private int i; void disp() { while (i <= 5) { for (int i=1; i <=5;) { System.out.print(i + " ");
i++; } i++; } } public static void main(String[] args) { new Natural().disp(); }
public class Natural { private int i; void disp() { while (i <= 5) { for (int i=1; i <=5;) { System.out.print(i + " ");
i++; } i++; } } public static void main(String[] args) { new Natural().disp(); }
정답: E
정답: C,D
int i, j=0; i = (3* 2 +4 +5 ) ; j = (3 * ((2+4) + 5)); System.out.println("i:"+ i + "\nj":+j);
정답: C
정답: A
정답: B
Given:
정답: B
James age: 20 Williams age: 32
정답: B
Given:
package p1;
public interface DoInterface { void method1(int n1); // line n1
}
package p3;
import p1.DoInterface;
public class DoClass implements DoInterface { public DoClass(int p1) { } public void method1(int p1) { } // line n2 private void method2(int p1) { } // line n3
}
public class Test {
public static void main(String[] args) {
DoInterface doi= new DoClass(100); // line n4
doi.method1(100);
doi.method2(100);
}
}
package p1;
public interface DoInterface { void method1(int n1); // line n1
}
package p3;
import p1.DoInterface;
public class DoClass implements DoInterface { public DoClass(int p1) { } public void method1(int p1) { } // line n2 private void method2(int p1) { } // line n3
}
public class Test {
public static void main(String[] args) {
DoInterface doi= new DoClass(100); // line n4
doi.method1(100);
doi.method2(100);
}
}
정답: B
정답: C,D,F
Given:
정답: C
정답: A
정답: D
정답: A
정답: A,C,E
정답: A,E
정답: B
public class MyClass {
public static void main(String[] args) {
String s = " Java Duke ";
int len = s.trim().length();
System.out.print(len);
}
}
정답: D