Runtime exceptions (unchecked exceptions)

  • 10
  • Locked
Write the implementation of the methodThrowsClassCastException() method. It must always throw a ClassCastException. Write the implementation of the methodThrowsNullPointerException() method. It must always throw a NullPointerException.
You can't complete this task, because you're not signed in.
Comments
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet