note

  • 홈
  • 태그
  • 방명록

java Equals 1

java 연산자 ==, equals(), hashCode() 정리

== 연산자 피연산자가 primitive type일 때는 값이 같은지 비교하고, 그 외 타입에서는 주소를 비교한다. public class Test { public static void main(String[] ar) { // primitive type 비교 char c1 = 'a'; char c2 = 'a'; System.out.println(c1 == c2); // true // string 타입 리터럴 비교 String str1 = "park"; String str2 = "park"; System.out.println(str1 == str2); // true // 스트링 생성자객체 비교 String str3 = new String("park"); String str4 = new String("par..

프로그래밍/JAVA 2020.03.10
이전
1
다음
더보기
반응형
프로필사진

note

え?

  • 분류전체보기 (235)
    • 프로그래밍 (217)
      • Vue.js (15)
      • React (0)
      • React Native (3)
      • TypeScript (1)
      • JavaScipt (37)
      • Node.js (6)
      • jQuery (44)
      • HTML+CSS (23)
      • SWIFT (1)
      • MSSQL (20)
      • ASP (24)
      • ASP.NET (0)
      • PHP (14)
      • JAVA (6)
      • GIT (2)
      • 기타 (21)
    • 페이스북 (9)
    • 크레이지아케이드 (9)

Tag

모바일 상단고정, ios 앱푸시, jquery, vue-i18n, renderless component, facebook APP, facebook api, javascript datediff, facebook share link, vuejs render function, 페이스북 앱, ios fcm background, vue3 i18n, crazyarcade, 크아, jquery touch slider, 페이스북 api, vue 국제화, 페이스북 연동, ios fcm foreground,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

Archives

Calendar

«   2026/01   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :
01-30 18:24

Copyright © AXZ Corp. All rights reserved.

티스토리툴바