Exception while working with strings

  • 3
  • Locked
In Java, an exception is an object. And it has a type, of course. This all seems vague until you start working with them. Practice will dispel the uncertainty. Be more confident in catching exceptions: catch and display the exception (indicating its type) that occurs when executing the following code: String s = null; String m = s.toLowerCase().
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 15 , Old Town, United States
8 May 2021, 03:31
wow, this is the first task I've seen with no comments. Naturally, I want to be the first one to leave a comment. This task was very satisfying task - one try. Happy coding! :)