Java - Online Test - Casting - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'Casting' - 2 questions found


Which of the following can throw ClassCastException ?Core Java
UpCasting
DownCasting
Casting to incompatible data type
Casting to Strings

  casting

x instanceOf y returns false ..Core Java
if x is an instance of y class
if x is an instance of class implementing y interface
if x is an instance of class extending y class
if x is an instance of Class which is a parent of Y class

  instaceOf







comments powered by Disqus