본문 바로가기

wasup

검색하기
wasup
프로필사진 wasupup

  • CATEGORY (377)
    • Linux (12)
    • NodeJs (4)
    • DataBase (35)
      • Oracle (0)
      • MySQL (20)
    • IT (241)
      • Java (117)
      • Android (23)
      • Python (16)
      • PHP (1)
      • html, css, script (35)
      • Network (22)
    • IT etc (54)
      • Git (8)
      • 기획 (1)
      • 마케팅 (1)
      • Tip (9)
    • CMS (12)
      • gnu (11)
      • 카페24 (0)
    • 웹표준 (2)
    • Box (8)
      • Portfolio (3)
      • Game (2)
Guestbook
반응형
Notice
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Link
Archives
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록javaStatic (1)

wasup

java static memory(정적메모리)2

package testPackage; public class StaticMethod { static int a; //static멤버변수a int b; //non static멤버변수b static void test(int x) { int sum = 0; //초기화 //sum=a+b+x; //일반멤버변수b는 사용불가 sum = a + x; System.out.println("sum = "+sum); //test2(); //non static 사용불가 test3(); } void test2() { System.out.println("test2"); } static void test3() { System.out.println("test3"); } } package testPackage; public class ..

IT/Java 2020. 11. 21. 15:39
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바