1Z0-501 試験問題を無料オンラインアクセス

試験コード:1Z0-501
試験名称:Java Certified Programmer
認定資格:Oracle
無料問題数:147
更新日:2026-10-13
評価
100%

問題 1

Exhibit:
1 . public class X implements Runnable (
2 .private int x;
3 .private int y;
4 .
5 .public static void main(String [] args) (
6 .X that = new X();
7 .(new Thread(that)) . start( );
8 .(new Thread(that)) . start( );
9 .)
1 0.
1 1. public synchronized void run( ) (
1 2.for (;;) (
1 3.x++;
1 4.y++;
1 5.System.out.printIn("x = " + x
1 6.)
1 7.)
1 8. )
What is the result?
+ ", y = " + y);

問題 2

Which two CANNOT directly cause a thread to stop executing? (Choose Two)

問題 3

Given:
1 . public class Foo {
2 . public static void main (String []args) {
3 . int i = 1;
4 . int j = i++;
5 . if ((i>++j) && (i++ ==j)){
6 .i +=j;
7 .}
8 .}
9 .}
What is the final value of i?

問題 4

Given:
1. public class foo {
2 . static String s;
3 . public static void main (String[]args) {
4 . system.out.printIn ("s=" + s);
5 . }
6 . }
What is the result?

問題 5

Exhibit:
1 . class super (
2 . public int I = 0;
3 .
4 . public super (string text) (
5 . I = 1
6 .)
7 .)
8 .
9 . public class sub extends super (
1 0. public sub (string text) (
1 1. i= 2
1 2. )
1 3.
1 4. public static void main (straing args[]) (
1 5. sub sub = new sub ("Hello");
1 6. system.out. PrintIn(sub.i);
1 7.)
1 8. )
What is the result?

コメントを追加

あなたのメールアドレスが公開されることはありません。個人情報に関する内容は隠されます *

insert code
画面にある文字を入力してください。