분류 전체보기
-
-
자바Platform/DB 2012. 6. 3. 00:57
DriverManager.getConnection() Connection.close().createStatement().prepareStatement().prepareCall() Statement.close().executeQuery() PreparedStatement.close().setInt().setString().executeQuery() CallableStatement.close().setString().registerOutParameter().execute().getString() ResultSet.close().next().getInt().getString()import java.sql.*;/* create table customer (no number(4) primary key,name v..
-
자바Platform/File(장치 IO) 2012. 6. 1. 16:24
java.io.DataOutput // 인터페이스 java.io.DataIntput // 인터페이스 java.io.RandomAccessFile.close().writeInt().read().readInt().seek().getFilePointer()import java.io.*; public class RandomAccessFileTest { public static void main(String[] args)throws IOException { RandomAccessFile f; f = new RandomAccessFile("...", "rw"); for(int i=0;i
-
자바프로그래밍 언어/데이터 타입 2012. 5. 22. 21:57
자바 컴파일러는 초기화되지 않은 지역 변수를 사용하는 것을 허락하지 않는다.e.g. Point p = new Point(2.0, -3.5); or Point p = null;String name = "David";int[] powersOfTwo = {1, 2, 4, 8, 16, 32, 64, 128};byte[] buffer = new byte[1024];char[] password = null;c.f. String[] responses = new String[2];responses[0] = "..";responses[1] = "..";c.f. 클래스 필드는 기본값으로 자동 초기화 final상수With a primitive, final makes the value a constant, but with a..
-
자바프로그래밍 언어/클래스 2012. 5. 22. 21:12
public class NestedValueReference {public int publicInt = 0;protected int protectedInt = 1;int justInt = 2;private int privateInt = 3;static private int staticInt = 4;static private class StaticNested {private int staticNestedInt=99;public void setValue() {staticInt = 14;}}private class Inner {private int innerValue=100;public void setValue() {publicInt = 20;protectedInt = 21;justInt = 22;privat..
-
자바프로그래밍 언어/규격 2012. 5. 13. 19:41
JLS(Java Language Specification) 1판JDK(Java Development Kit)/JRE 1.0/1.1 버전 JLS 2판J2SDK/J2RE 1.2/1.3/1.4 버전 JLS 3판JDK/JRE 5.0(1.5), 6.0(1.6) 버전 자바는 goto 문을 지원하지 않는다. java.lang 패키지는 자동 포함c.f. import java.lang.*; 모든 자바 명령문은 메소드 안에 나타나며, 모든 메소드는 클래스 안에 정의된다.자바 플랫폼은 자바를 구동시키는 모든 컴퓨터에서 사용가능하도록 보장된 1500개 이상의 미리 정의된 클래스로 구성된다. System.exit() // static
-
vsftpdSysAdmin 2012. 4. 25. 17:07
c.f. SFTP(SSH File Transfer Protocol) - usually runs over TCP port 22 $ rpm -qa vsftpd#or $ rpm -qa | grep vsftpd # yum install vsftpd FTP 서비스 시작 : /etc/rc.d/init.d/vsftpd startFTP 서비스 종료 : /etc/rc.d/init.d/vsftpd stop부팅시 자동 실행 : chkconfig vsftpd on설정 완료후 xinetd 재실행 : /etc/rc.d/init.d/xinetd restart * /etc/vsftpd/vsftpd.conf 주요 설정 # anonymous 사용자의 접속 허용 여부anonymous_enable=NO # 로컬 계정 사용자의 접속 허용여부..