static in Java
static 의 특징- Static method는 클래스의 특정 객체가 아닌 클래스 자체에 속해있다. - static은 class가 load될 때 단 한번 실행된다.- You can use a class name to call the static method.- To access "static" we don't need an object.static method는 instance 생성을 하지 않아도 접근 할 수가 있는 반면에 non-static method는 인스턴스 생성을 통해서만 접근 가능 하다. * 별도 메모리공간에 할당되어 초기화까지 완료가 된다. 그렇기에 인스턴스를 생성하지 않아도 호출이 가능 When do we use the Static method?- If the static method i..
JAVA
2019. 1. 5. 06:53
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- hackerrank javascript
- hackerrank solution
- substring()
- 알고리즘
- HackerRank Algorithm
- java
- algorithm
- compareTo()
- easy javascript algorithm
- Javascript Algorithm
- hackerrank javascript solution
- rest parameter
- repeat()
- Object type casting
- javascript
- HashMap
- math.max
- 프로그래머스 알고리즘문제
- code refactoring
- Collection Framework
- spring boot application
- math.abs
- string class in java
- 프로그래머스
- C++
- ... in Javascript
- hackerrank
- equals()
- easy algorithm
- 프로그래머스 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함