File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes usage of a class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "usage of a class" Watch "usage of a class" New topic

usage of a class

murthy ramana

Joined: Feb 14, 2007
Posts: 10
hi folks,
how can we use a class without instantiating it directly or indirectly.
Swetha S

Joined: Dec 06, 2006
Posts: 16
Is it through Abstract class?
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
What do you think, or is this some homework or interview question?
Please show some effort that you have attempted to answer the question yourself.

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
murthy ramana

Joined: Feb 14, 2007
Posts: 10
thanks for the replies. One of my friend has asked me this question. I told him that we can use a class through an abstract class. But i want to make sure that it is the only way to use a class without instantiation.

expecting some more replies,
I agree. Here's the link:
subject: usage of a class
It's not a secret anymore!