Answer to Question #53181 in Java | JSP | JSF for santosh

Question #53181
1.What is a framework?
2.What is singleton class?
1
Expert's answer
2015-07-02T02:52:44-0400
1) Framework is an advanced programming interface that provides some kind of communication protocols, programming technologies, libraries etc. The main purpose of the framework is to allow convenient way of usage specific tools that it includes. As a vivid example it could be .Net Framework – package of different libraries, technologies and even programming languages that allow creating programs, web-sites, databases for Windows platform.
2) Singleton is a class that encapsulates mechanism of instance creating. It allows to have a single instance of this class in all the program. Usually it is implemented via private constructor and private static instance of itself included in class definition. Class has static getter method that returns static instance of it. The purpose of this pattern is to hold protected state through all the program.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS