Singleton pattern (Java design pattern)
Singleton pattern It creates only one instance of a class, not allow to create a 2nd instance. How to create a Singleton pattern 1. Create a 'static' object of a class 2. Create private constructor to prevent that a user creates an instance with a default constructor. ※ The default constructor is called when an instance is created. the default constructor is public by default. 3. Create a 'stati..
JAVA
2019. 7. 10. 05:20
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- java
- code refactoring
- 프로그래머스
- Collection Framework
- math.max
- Javascript Algorithm
- HashMap
- javascript
- ... in Javascript
- hackerrank javascript solution
- Object type casting
- 프로그래머스 알고리즘문제
- compareTo()
- equals()
- rest parameter
- 프로그래머스 알고리즘
- 알고리즘
- easy algorithm
- spring boot application
- HackerRank Algorithm
- hackerrank javascript
- string class in java
- algorithm
- hackerrank
- math.abs
- easy javascript algorithm
- C++
- hackerrank solution
- substring()
- repeat()
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함