0 votes
13 views
What is Singleton pattern?
in Education by (48.2k points)

1 Answer

0 votes
What is Singleton pattern?
Singleton pattern is one of the simplest design patterns in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.

This pattern involves a single class which is responsible to create an object while making sure that only single object gets created. This class provides a way to access its only object which can be accessed directly without need to instantiate the object of the class.
by (48.2k points)

Related questions

0 votes
1 answer 12 views
0 votes
1 answer 12 views
0 votes
1 answer 12 views
0 votes
1 answer 10 views
0 votes
1 answer 12 views
0 votes
1 answer 20 views
0 votes
1 answer 11 views
0 votes
1 answer 12 views
12 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 12 views
12 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 12 views
12 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 11 views
11 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 11 views
11 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 10 views
10 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 10 views
10 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 10 views
0 votes
1 answer 10 views
10 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 11 views
11 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
...