Question: Question 19 1 pts A type cast using reference type is a promise to the compiler that the dynamic type of the expression will conform

Question 19 1 pts

A type cast using reference type is a promise to the compiler that the dynamic type of the expression will conform to the type specified in the cast. What happens if this promise is broken?

A syntax error will occur.
The dynamic type will be changed to match the type specified in the cast.
A ClassCastException will be thrown.
The JRE will request a replacement type from the user.
The type cast will be ignored.

Flag this Question

Question 20 1 pts

How many different classes can a sub class derive from, using the keyword extends?

A sub class can extend directly from mutliple super classes.
exactly one class
any number of classes as long as an import statement is used

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!