Oracle 1Z0-501 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: 1Z0-501
  • Exam Name/Title: Java Certified Programmer
  • Certification Provider: Oracle
  • Corresponding Certification: Other Oracle Certification
  • Exam Questions: 147
  • Updated On: Jul 01, 2026
Given:
1 . public class MethodOver{
2 .public void setVar (int a, int b, float c){
3 .}
4 . }
Which two overload the setVar method? (Choose Two)
Correct Answer: B,C Vote an answer
You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?
Correct Answer: D Vote an answer
Given:
1 . public interface Foo{
2 . int k = 4;
3 .}
Which three are equivalent to line 2? (Choose Three)
Correct Answer: D,E,H Vote an answer
Which two can be used to create a new Thread? (Choose Two)
Correct Answer: C,D Vote an answer
Which statement is true?
Correct Answer: A Vote an answer
What writes the text "<end>" to the end of the file "file.txt"?
Correct Answer: A Vote an answer
Given:
1 . public class foo {
2 . public static void main (string[]args)
3 . try {return;}
4 . finally {system.out.printIn("Finally");}
5 . }
6 . )
What is the result?
Correct Answer: B Vote an answer
Given:
1. public class OuterClass {
2. private double d1 1.0;
3. //insert code here
4. }
You need to insert an inner class declaration at line2. Which two inner class declarations are valid? (Choose Two)
Correct Answer: B,C Vote an answer
Given:
1 . public class Test {
2 . public static void main (String []args){
3 . unsigned byte b = 0;
4 . b--;
5 .
6 .}
7 . }
What is the value of b at line 5?
Correct Answer: D Vote an answer
0
0
0
10