• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method call

 
Rashmi Dupati
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you try it and let us know what you find out?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic