본문 바로가기

pungjoo

검색하기
pungjoo
프로필사진 pungjoo.kim

  • 뭘까 뭘까 (19)
    • HTTP (3)
    • JAVA (11)
    • 미분류 (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2007/02   »
일 월 화 수 목 금 토
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
Tags
  • clone
  • Java
  • toString
  • Proxy
  • InvocationHandler
  • cookie
  • Keep-Alive
  • chunked
  • http
  • unmodifiableList
  • Transfer-Encoding
  • http/1.1
  • urlclassloader
  • Session
  • reflection
  • singleton
  • Content-Length
  • getRequestURI
  • Reference
  • object
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2007/02 (1)

pungjoo

reference VS value

들어가면서 자바에서 call by reference일까요 call by value일까요? 예제 소스 1 public class CBRTest { 2 3 static void change(StringBuffer r) { 4 r.delete(0, 1); 5 r.append("10"); 6 } 7 8 static void change2(StringBuffer r) { 9 r = new StringBuffer("15"); 10 } 11 public static void main(String [] args) { 12 StringBuffer s = new StringBuffer("5"); 13 System.out.println(s); 14 change(s); 15 System.out.println(s); 16 ch..

JAVA 2007. 2. 7. 15:39
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

DNS server, DNS service

티스토리툴바