Oracle (1Z0-808) Exam Questions And Answers page 1
Which statement is true about the Acc.java file?
Single Choice
Given:
Acc.java:
Which statement is true?
Acc.java:
Which statement is true?
Only s is accessible via obj.
Both r and s are accessible via obj.
p, r, and s are accessible via obj.
Java Basics
Working with Methods and Encapsulation
What is the expected result of the given scenario?
Single Choice
Given:
What is the result?
What is the result?
Compilation fails.
11
8
9
10
Using Operators and Decision Constructs
Working with Methods and Encapsulation
What is the expected result of the given scenario?
Single Choice
Given:
What is the result?
What is the result?
A B C D
A C D
A C D D
A B C C
A B D C
Using Operators and Decision Constructs
Working with Methods and Encapsulation
What is the result of the given commands?
Single Choice
Given:
And given the commands:
What is the result?
And given the commands:
What is the result?
1 null
true false
false false
true true
A ClassCastException is thrown at runtime.
Using Operators and Decision Constructs
Working with Methods and Encapsulation
What is the result of the given commands?
Single Choice
Given:
And given the commands:
What is the result?
And given the commands:
What is the result?
Success
Failure
Compilation fails.
An exception is thrown at runtime
Using Operators and Decision Constructs
Working with Methods and Encapsulation
Given:
Which code fragment can replace the if block?
Which code fragment can replace the if block?
Using Operators and Decision Constructs
What is the expected result of the given scenario?
Single Choice
Given:
What is the result?
What is the result?
Compilation fails at line n3 and line n4.
Compilation fails at line n1 and line n2.
Welcome Visit Count:1
Welcome Visit Count: 1
Welcome Visit Count: 1
Welcome Visit Count:1
Welcome Visit Count: 2
Welcome Visit Count: 2
Using Operators and Decision Constructs
Working with Methods and Encapsulation
What is the expected result of the given scenario?
Single Choice
Given:
What is the result?
What is the result?
a, e
i, i
i, i
a, e
o, o
o, o
e, e
i, i
i, i
a, a
o, o
o, o
Using Operators and Decision Constructs
Working with Methods and Encapsulation
What is the expected result of the given scenario?
Single Choice
Given:
What is the result?
What is the result?
Compilation fails.
0 0
81 25
9 5
Using Operators and Decision Constructs
Working with Methods and Encapsulation
What is the expected result of the given scenario?
Single Choice
Given:
What is the result?
What is the result?
Area is 6.0
Area is 3.0
Compilation fails at line n1
Compilation fails at line n2.
Using Operators and Decision Constructs
Working with Methods and Encapsulation
Comments