import java.util.scanner; // java.util 패키지 안에 있는 scanner라는 클래스를 사용
class System
{
public static final PrintStream out;
//More Code Below
}
class PrintStream
{
public void print(argument)
{
//implementation
}
public void println()
{
//implementation
}
//Overloaded print() and println() methods below
}
컴파일 할 때 이미 메모리에 로드되기 때문임
Math.random() // math함수를 import하지 않아도 static 메쏘드이기 때문에 사용가능
String a = "hello";
String b = new String("hello");
System.out.println(a.equals(b)); // true
System.out.println(a == b); // false, == 연산자는 두개의 자료형이 동일한 객체인지를 판별 --> a와b는 같지만 서로 다른 객체임