This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java" Watch "Java" New topic


Shantanu Puranik
Ranch Hand

Joined: Jun 10, 2004
Posts: 67
How can we make a plain (ordinary) Java class to be a reusable one?
Difference between Java Bean & Bean class

--- Shantanu
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Moved to Java In General (Beginner)

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Lorenz Baylon
Ranch Hand

Joined: Jan 04, 2006
Posts: 99
How can we make a plain (ordinary) Java class to be a reusable one?

-- If you are referring to a java class being used as a 'utility class' or a class that can be called by other class within a project or package to perform some functions, i suggest that you declare those methods as public so that other classes may see them.

I hope this helps a bit.

I just cant look, its killing me.
I agree. Here's the link:
subject: Java
It's not a secret anymore!