aspose file tools*
The moose likes Beginning Java and the fly likes Can an abstract class contain main() method or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can an abstract class contain main() method or not?" Watch "Can an abstract class contain main() method or not?" New topic
Author

Can an abstract class contain main() method or not?

Pratima Gupta
Greenhorn

Joined: Aug 17, 2012
Posts: 2
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4240
    
    7

Hi Pratima. Welcome to the Ranch!

Your best bet is to try it - that will give you a much more reliable answer than a forum ever will (and faster too).
Pratima Gupta
Greenhorn

Joined: Aug 17, 2012
Posts: 2
Thanks.............
BalaMurali dhar
Ranch Hand

Joined: Apr 14, 2012
Posts: 60
- edited to remove solution
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
Please read this, BalaMurali dhar, which appears at the beginninng of this forum:
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
Matthew has correctly suggested Pratima Gupta try it. She will learn so much better by doing something for herself than by being told the answer, as you tried to do. Somebody has accordingly deleted your post, which is the right thing to do in the circumstances.
Pablo Abbate
Ranch Hand

Joined: Aug 06, 2012
Posts: 30

You have just one limitation regarding abstract classes. You can not instantiate one.

Nissi Group, Posicionamiento Web, Desarrollo de Software, DiseƱo Web
Blog , LinkedIn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can an abstract class contain main() method or not?
 
Similar Threads
How to deploy/undeploy EJBs application through HOT Deployment on websphere 6.1?
WA #1.....word association
Happy New Year! Welcome to our new forums!
can i deploy any ear/jar/war without admin console on websphere 6.1?
How to convert xml to pdf form in java