I wrote a small Java class called Hello. In its main() method, I wrote the following code:
now if I run my small class as follows:
What result will I get? Will I get a NullPointerException? Why?
Can anybody offer an answer here?
This post has been archived. It cannot be replied.