Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ojcp question

 
lambadi ganesh
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one tell



differance between
1. public static void main(String[] ar);
2> public satic void main(Integer[] i);
3> public void main(String ar[]);
please tell me

thanks and regards
lambadi sir
 
Mohamed Sanaulla
Bartender
Posts: 3166
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The difference is evident- one uses String array as parameter, the other uses Interger array and the third one is not static whereas the first two are static.

Also please post your Scjp related queries in the SCJP Certification forum.
 
lambadi ganesh
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
Justin Rundle
Ranch Hand
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

If you want answers pertaining to OCJP then post your questions here:
http://www.coderanch.com/forums/f-24/java-programmer-SCJP

This is the results forum.
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!