It's not a secret anymore!
The moose likes Beginning Java and the fly likes Method call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Method call" Watch "Method call" New topic
Author

Method call

Rashmi Dupati
Greenhorn

Joined: Mar 05, 2007
Posts: 22
Hello all

Can we pass null parameter to a meathod?

test(null);

like this for the method

public static void test(String str){
//some code goes here
}

Thanks in advance

Regards
Rashmi
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9137
    
    9

Why don't you try it and let us know what you find out?


[How To Ask Questions On JavaRanch]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Method call
 
It's not a secret anymore!