Java OCA OCP Practice Question 231

Question

Which of the following may appear as the new type between the parentheses in a cast operation?

  • A. Classes
  • B. Interfaces
  • C. Arrays of classes
  • D. Arrays of interfaces
  • E. All of the above


E.

Note

Any type may appear inside the parentheses of a cast.




PreviousNext

Related