Oracle
1Z0-803 · Question #3
Given: Which statement, when inserted into line "// TODO code application logic here ", is valid change?
The correct answer is B. sc = asc;. Incorrect answers: asc = sc.clone(); Incompatible types. Incompatible types. asc = (object) sc;
Working with Java Data Types
Question
Given:
Which statement, when inserted into line "// TODO code application logic here ", is valid change?
Exhibit
Options
- Aasc = sc;
- Bsc = asc;
- Casc = (object) sc;
- Dasc= sc.clone ()
How the community answered
(41 responses)- A2% (1)
- B90% (37)
- C5% (2)
- D2% (1)
Explanation
Incorrect answers: asc = sc.clone(); Incompatible types. Incompatible types. asc = (object) sc;
Topics
#type compatibility#object assignment#polymorphism#casting
Community Discussion
No community discussion yet for this question.
