JDK1.1, JDK 1.2 ÇÑ±Û º¸¿ÏÆÇ (ºñ°ø½Ä)


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :±è´öÅ 1997³â 12¿ù 28ÀÏ 18:34:08

ÀÚ¼¼ÇÑ »çÇ×Àº http://calab.kaist.ac.kr/~dtkim/java/jdk11-ko.html ¹×
http://calab.kaist.ac.kr/~dtkim/java/jdk12-ko.html ¸¦ ÂüÁ¶ÇϽñ⠹ٶ÷.


JDK 1.1, JDK 1.2 ÇÑ±Û º¸¿ÏÆÇÀº ´ÙÀ½ ±â´ÉÀ» Áö¿øÇÕ´Ï´Ù.


- JDK 1.1.xÀÇ ÀÚ¹Ù ÄÄÆÄÀÏ·¯(javac) »ç¿ë½Ã ÇѱÛÈ­µÈ Ãâ·Â ¸Þ½ÃÁö
- ÀÚ¹Ù ¹®¼­ »ý¼º±â(javadoc) »ç¿ë½Ã ÇѱÛÈ­µÈ Ãâ·Â ¸Þ½ÃÁö (¹× ÇѱÛÈ­µÈ ¹®¼­ »ý¼º)
- À¯´Ð½º¿¡¼­ ½ÇÇàµÇ´Â ÀÚ¹Ù ÇÁ·Î±×·¥¿¡¼­ ÇѱÛÈ­µÈ Àμ⠼³Á¤ â


JDK 1.1.x, JDK 1.2.x ¸¦ ¸ÕÀú ¼³Ä¡ÇÑ ÈÄ¿¡, ¼³Ä¡ÇÏ¿©¾ß ÇÕ´Ï´Ù.


JDK³»ÀÇ ÀÚ¹Ù ÄÄÆÄÀÏ·¯¸¦ ºñ·ÔÇÑ ´ëºÎºÐÀÇ ÀÚ¹Ù °³¹ßµµ±¸´Â ÀÚ¹Ù·Î
¸¸µé¾îÁ® ÀÖÀ¸¸ç, ¶ÇÇÑ ÀÚ¹ÙÀÇ ´Ù±¹¾î Áö¿ø±â´ÉÀ» ÀÌ¿ëÇÏ¿© ±¸ÇöµÇ¾î
ÀÖ´Ù. JDK ÇÑ±Û º¸¿ÏÆÇÀº ºÎ°¡ÀûÀÎ ¸®¼Ò½º (resource) È­ÀÏÀÇ ÇüÅ·Î
ÇѱÛÈ­µÈ ¸Þ½ÃÁö¸¦ Á¦°øÇϸç, º»·¡ÀÇ ¿µ¹® ¸Þ½ÃÁö ¸®¼Ò½º È­ÀÏ ¹× ±âŸ
´Ù¾çÇÑ ¾ð¾î Áö¿ø ¸®¼Ò½º È­ÀÏ°ú Ãæµ¹ÇÏÁö ¾Ê´Â´Ù.


JDK 1.1 ÇÑ±Û º¸¿ÏÆÇÀº JDK 1.1.x¿¡ ³»ÀåµÈ ¿µ¹® ¸Þ½ÃÁö ¸®¼Ò½º È­ÀÏÀ»
Çѱ۷Π¹ø¿ªÇÑ °ÍÀÌ´Ù.



=============== JavacTest.java ================================
import java.io.*;


class JavacTest extends java.awt.Component
{
public static void main( String[] args )
throws IOException
{
print( "ÇѱÛ" );
DataInputStream in = new DataInputStream(System.in);
String line = in.readLine();
System.out.println( line );
}


void print( String s )
{ System.out.println( s );
}
}
==================================================================


½ÇÇà ¿¹
C:> set CLASSPATH=.;C:\tools\jdk11-ko.zip
C:\example\intro> javac JavacTest.java
JavacTest.java:8: class JavacTestÀÇ ÀνºÅϽº ¸Þ½îµå void
print(java.lang.String)À» Ŭ·¡½º (static) ¸Þ½îµåÀÎ °Íó·³
È£ÃâÇÏ¿´À½. ÀνºÅϽº ¸Þ½îµå void print(java.lang.String)À» Ŭ·¡½º
¸Þ½îµå·Î º¯°æ½ÃÅ°°Å³ª, °´Ã¼¸¦ ÁöÁ¤ÇÏ¿© È£ÃâÇÏ¿©¾ß ÇÔ.


print( "ÇѱÛ" );
^
°æ°í: JavacTest.java¿¡¼­ ±ÇÀåµÇÁö ¾Ê´Â (deprecated) API°¡
»ç¿ëµÇ¾úÀ½. ÀÚ¼¼ÇÑ »çÇ×À» º¸±â À§Çؼ­´Â "javac -deprecation" ¸í·ÉÀ»
½ÇÇàÇϱ⠹ٶ÷.
¿À·ù 1 °³, °æ°í 1 °³


º»·¡ÀÇ ¿µ¹® ¸Þ½ÃÁö°¡ Ãâ·ÂµÇ°Ô Çϱâ À§Çؼ­´Â,


C:\example\intro> set CLASSPATH=
C:\example\intro> javac JavacTest.java
JavacTest.java:8: Can't make static reference to method void
print(java.lang.String) in class JavacTest.


print( "ÇѱÛ" );
^
Note: JavacTest.java uses a deprecated API. Recompile with
"-deprecation" for details.
1 error, 1 warning



--
Deogtae Kim (±è´öÅÂ)
CA Lab. CS Dept. KAIST
http://calab.kaist.ac.kr/~dtkim/java


´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]