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?
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?