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


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'Error' - 3 questions found


Which of the following exception is thrown when we try to access element which is beyond the size ?Core Java
NullPointerException
ArrayIndexOutOfBoundException
ArithmeticException
ParseException

  java  exceptions  error handling

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