1. SOLID란? 객체지향 프로그래밍 및 설계의 다섯 가지 기본 원칙 ◆ SRP (Single Responsibility Principle) 단일 책임 원칙 "어떤 클래스를 변경 해야 하는 이유는 오직 하나 뿐이어야 한다." - 모든 클래스 또는 메서드는 단 하나의 책임을 가져야 한다는 의미 ◆ OCP (Open/Close Principle) 개방/폐쇄 원칙 "소프트웨어 엔티티(클래스, 모듈, 함수)는 확장에 대해서는 열려 있어야 하지만 변경에 대해서는 닫혀 있어야 한다." - 확장은 할 수 있지만 수정은 하지 않을 수 있도록 프로그램을 작성 해야 한다는 의미 ◆ LSP (Liskov Substitution Principle) 리스코프 치환 원칙 "서브 타입은 언제든 자신의 기반 타입으로 교체할 수 있..
BigInteger Class ◎ Define - JAVA의 64bit 정수 타입인 long 으로 표현할 수 있는 범위는 약 922경까지의 숫자이다. 만약 이보다 더 큰 숫자가 필요한 경우 사용 되는 것이 BigInteger Class이며 String Class와 마찬가지로 불변객체(Immutable)이다. ◎ Field, Constructor, Method 정보 ◎ Explanation 사용 방법은 BigDecimal Class와 거의 동일하다.
BigDecimal Class ◎ Define - BigDecimal Class는 무한한 크기의 부동소수점 숫자를 보다 정확하게 다루기 위한 Class이다. ◎ Field, Constructor, Method 정보 ◎ Explanation ① 왜 float, double을 두고 BigDecimal을 사용하는 걸까? 실수를 연산할 때 float, double 타입 사용에 주의해야 한다. 123456789101112131415161718192021222324public class MainUser { public static void main(String[] args) { double num1 = 2.0; float num2 = 1.1F; System.out.println("[1. 실수의 보..
Double Class ◎ Define - Double Class는 객체형(Reference Type) 데이터 타입이고, double 변수는 기본형(Primitive Type) 데이터 타입이다. ◎ Wrapper Class Structure ◎ Field, Constructor, Method 정보 ◎ Explanation ① Wrapper Class, Primitive Type, Reference Type은 http://minca.tistory.com/8 이곳을 참조하자.
Float Class ◎ Define - Float Class는 객체형(Reference Type) 데이터 타입이고, float 변수는 기본형(Primitive Type) 데이터 타입이다. ◎ Wrapper Class Structure ◎ Field, Constructor, Method 정보 ◎ Explanation ① Wrapper Class, Primitive Type, Reference Type은 http://minca.tistory.com/8 이곳을 참조하자.
Long Class ◎ Define - Long Class는 객체형(Reference Type) 데이터 타입이고, long 변수는 기본형(Primitive Type) 데이터 타입이다. ◎ Wrapper Class Structure ◎ Field, Constructor, Method 정보 ◎ Explanation ① Wrapper Class, Primitive Type, Reference Type은 http://minca.tistory.com/8 이곳을 참조하자.
Integer Class ◎ Define - Integer Class는 객체형(Reference Type) 데이터 타입이고, int 변수는 기본형(Primitive Type) 데이터 타입이다. ◎ Wrapper Class Structure ◎ Field, Constructor, Method 정보 ◎ Explanation ① Wrapper Class, Primitive Type, Reference Type은 http://minca.tistory.com/8 이곳을 참조하자.
Byte Class ◎ Define - Byte Class는 객체형(Reference Type) 데이터 타입이고, byte 변수는 기본형(Primitive Type) 데이터 타입이다. ◎ Wrapper Class Structure ◎ Field, Constructor, Method 정보 ◎ Explanation ① Wrapper Class, Primitive Type, Reference Type은 http://minca.tistory.com/8 이곳을 참조하자.
Short Class ◎ Define - Short Class는 객체형(Reference Type) 데이터 타입이고, short 변수는 기본형(Primitive Type) 데이터 타입이다. ◎ Wrapper Class Structure ◎ Field, Constructor, Method 정보 ◎ Explanation ① Wrapper Class, Primitive Type, Reference Type은 http://minca.tistory.com/8 이곳을 참조하자.