Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling main

 
Appanid Pathak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why can we not call a main method using an object as any other static method
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can.


What makes you think otherwise?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the OP was referring to something like

I'm certain that you can do this. Why do you think that you can't?

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic