1Z0-501 무료 덤프문제 온라인 액세스
시험코드: | 1Z0-501 |
시험이름: | Java Certified Programmer |
인증사: | Oracle |
무료 덤프 문항수: | 147 |
업로드 날짜: | 2025-08-27 |
Given:
1 . public class IfTest (
2 . public static void main(string[]args) {
3 . int x = 3;
4 . int y = 1;
5 . if (x = y)
6 . system.out.printIn("Not equal");
7 . else
8 . system.out.printIn("Equal");
9 .}
1 0. )
What is the result?
Exhibit:
1 . class super {
2 .public int getLength(){return 4;}
3 .}
4 .
5 . public class Sub extends Super {
6 .public long getLength() {return 5;}
7 .
8 . public static void main (String[]args){
9 .super sooper = new Super ();
1 0. Sub sub = new Sub();
1 1. System.out.printIn(
1 2.sooper.getLength()+ "," + sub.getLength()};
1 3.}
1 4. }
What is the output?
Exhibit:
1 . public class X {
2 . public static void main (String[]args){
3 . int [] a = new int [1]
4 . modify(a);
5 . System.out.printIn(a[0]);
6 .}
7 .
8 . public static void modify (int[] a){
9 .a[0] ++;
1 0.}
1 1. }
What is the result?
Given:
8 . int index = 1;
9 . boolean[] test = new Boolean[3];
1 0. boolean foo= test [index];
What is the result?