• 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
Saloon Keeper
Posts: 3165
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic