Oracle 1Z0-501 Actual Free Exam Questions & Community Discussion
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?
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?
Correct Answer: C
Vote an answer
Given an ActionEvent, which method allows you to identify the affected Component?
Correct Answer: D
Vote an answer
You need to store elements in a collection that guarantees that no duplicates are stored.
Which two interfaces provide that capability? (Choose Two)
Which two interfaces provide that capability? (Choose Two)
Correct Answer: A,E
Vote an answer
Which two valid declarations of a char? (Choose Two)
Correct Answer: A,B
Vote an answer
Given the ActionEvent, which method allows you to identify the affected component?
Correct Answer: D
Vote an answer
Given:
1 . public abstract class Test {
2 . public abstract void methodA();
3 .
4 . public abstract void methodB()
5 . {
6 . System.out.printIn("Hello");
7 .}
8 . }
Which three changes (made independently) allow the code to compile? (Choose Three)
1 . public abstract class Test {
2 . public abstract void methodA();
3 .
4 . public abstract void methodB()
5 . {
6 . System.out.printIn("Hello");
7 .}
8 . }
Which three changes (made independently) allow the code to compile? (Choose Three)
Correct Answer: D,E,F
Vote an answer
Which method is an appropriate way to determine the cosine of 42 degrees?
Correct Answer: B
Vote an answer
0
0
0
10
