728x90
<자격증>/[정보처리기사]
-
정처기 실기 3회차 기출(2021년)<자격증>/[정보처리기사] 2021. 12. 30. 19:04
문제 1 (정답 3) class Connection { static private Connection _inst = null; private int count = 0; static public Connection get() { if(_inst == null) { _inst = new Connection(); return _inst; } return _inst; } public void count() { count ++; } public int getCount() { return count; } } public class testcon { public static void main(String[] args) { Connection conn1 = Connection.get(); conn1.count(); C..
-