×

Loading...

A Java question for fun

Javanese,

I wrote a small Java class called Hello. In its main() method, I wrote the following code:

System.out.println("HELLO "+args[0].toUpperCase());

now if I run my small class as follows:

java Hello

What result will I get? Will I get a NullPointerException? Why?

Can anybody offer an answer here?
Sign in and Reply Report

Replies, comments and Discussions: