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 -05:00

回到话题: A Java question for fun

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=9329