Q
Problem solve Get help with specific problems with your technologies, process and projects.

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.

Dig Deeper on Windows client management

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.

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchSQLServer

SearchEnterpriseDesktop

SearchVirtualDesktop

Close