개요[ | ]
- Object Class 는 최상위 Class, Java내에서의 모든 Class는 최상위 Class로 Object Class를 가짐
- 모든 Oject는 아래 Methods 가지고 있음
Modifier and Type | Method |
---|---|
protected Object | clone()
클래스를 복제하여 return |
boolean | equals(Object obj)
다른 Object와 같은지 조사한다 |
protected void | finalize()
garbage collector 라고 부른다 |
Class<?> | getClass()
현재 실행중인 class를 return |
int | hashCode()
object의 hash code를 return |
String | toString()
object를 string으로 다시 표현 |
void | notify()
대기중인 thread 1개를 깨운다 |
void | notifyAll()
대기중인 모든 thread를 깨운다 |
void | wait()
다른 thread가 notify() 혹은 notifyAll() 할때까지 대기한다 |
void | wait(log timeout)
다른 thread가 notify() 혹은 notifyAll() 할때까지 대기하거나 지정한 시간까지 대기한다. |
void | wait(long timeout, init nanos)
다른 thread가 notify() 혹은 notifyAll() 할때까지 대기하거나 지정한 시간까지 특정시간만큼 대기한다 |
편집자 에어컨 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.