nerdexam
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

1Z0-803 question #3 exhibit

Options

  • Aasc = sc;
  • Bsc = asc;
  • Casc = (object) sc;
  • Dasc= sc.clone ()

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    90% (37)
  • C
    5% (2)
  • D
    2% (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.

Full 1Z0-803 Practice