1Z0-501 試験問題を無料オンラインアクセス
| 試験コード: | 1Z0-501 |
| 試験名称: | Java Certified Programmer |
| 認定資格: | Oracle |
| 無料問題数: | 147 |
| 更新日: | 2026-07-15 |
Given:
1 . public class X (
2 . public object m () {
3 . object o = new float (3.14F);
4 . object [] oa = new object [1];
5 . oa[0]= o;
6 . o = null;
7 . return oa[0];
8 . }
9 . }
When is the float object created in line 3, eligible for garbage collection?
Given:
1 . class BaseClass{
2 . private float x= 1.0f;
3 . protected void setVar (float f) {x = f;}
4 . }
5 . class SubClass exyends BaseClass {
6 . private float x = 2.0f;
7 . //insert code here
8 .}
Which two are valid examples of method overriding? (Choose Two)
Given:
Integer i = new Integer (42);
Long 1 = new Long (42);
Double d = new Double (42.0);
Which two expressions evaluate to True? (Choose Two)