Match the types of information from the stack trace message with examples.
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null
at ExceptionDemo.main(ExceptionDemo.java:8)Match the types of information from the stack trace message with examples.
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null
at ExceptionDemo.main(ExceptionDemo.java:8)Create a free account to access the full topic