Q

What is a static Java class? What is the 'singleton' design pattern?

1. What does it mean when a class in Java is declared static?
2. What is the 'singleton' design pattern?
A static class is a class that exists without having to be allocated. In other words, it's created before your Main method is called. That means the methods for the class can be accessed by any other method in the program. A Singleton design pattern is the representation of a static class.
This was last published in July 2002

Dig Deeper on Windows Operating System Management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close