×

Loading...

A Java question for fun

jabber (jabber)
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?
(#9329@0)
2000-9-25 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: A Java question for fun

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论