포스트

임시 연습 템플릿 게시물

인텔리제이로만 개발해오다가 이클립스도 써보며 기초를 다시 다져보려
작성하는 기초 관련 게시물

인스턴스와 스태틱 (instance And static)


  • 리스트 1
  • 리스트 2
  • 리스트 3
  1. 첫 번째 항목
  2. 두 번째 항목
    1. 서브 항목 1
    2. 서브 항목 2
  3. 세 번째 항목
  • 항목 1
  • 항목 2
    • 서브 항목 1
    • 서브 항목 2
  • 항목 3
  • 항목 4

기울임   또는 기울임
굵게 또는 굵게

인라인 코드 예시

링크
Google
설명 텍스트
구분선




제목1제목2제목3
내용1내용2내용3
내용4내용5내용6

체크리스트

  • 완료된 작업
  • 미완료된 작업
  • 추가할 작업

테스트

1
2
3
4
5
public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello, Jekyll!");
    }
}

이미지테스트설명 이미지테스트설명

이미지테스트설명 이미지테스트설명

설명임

설명임 이미지설명달기

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**타입별 초기화 테스트 클래스*/
public class TypeInitialization {
	private char character;
	private int integer;
	private double doubles;
	private String string;
	
	public String getString() {
		return this.string;
	}
	public char getChar() {
		return this.character;
	}
	public int getInteger() {
		return this.integer;
	}
	public double getdouble() {
		return this.doubles;
	}
}
1
2
3
4
5
6
7
8
9
10
/**실행 클래스*/
public class Main01 {
	public static void main(String[] args) {
		TypeInitialization test = new  TypeInitialization();
		System.out.println("\""+test.getChar()+"\"");
		System.out.println(test.getdouble());
		System.out.println(test.getInteger());
		System.out.println(test.getString());
	}
}
변수 초기화 예제
출력 결과

1
2
3
4
 전역변수는 클래스 전역에서 사용되고 클래스가 인스턴스화 될때
기본값으로 초기화 된다.  
 지역변수는 블록내에서만 사용되는 변수 블록을 벗어나면 제거된다.
  그리고 초기화 필수!

⬇️
👌️
❤️
❤︎
asdff

asf

프롬프트1

프롬프트2

프롬프트4

프롬프트3

이 작성글은 저작권자의 CC BY 4.0 라이센스를 따릅니다.

© SIHU LEE. Sirimp's Code Blog

Backend Development Journey