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 first published in July 2002

Dig deeper on Windows Operating System Management

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close