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

え?

  • 분류전체보기 (234)
    • 프로그래밍 (216)
      • Vue.js (14)
      • 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

video control hide, facebook api, facebook share link, javascript datediff, ios 앱푸시, 페이스북 연동, video 인앱 재생버튼, ios fcm foreground, 크아, 모바일 상단고정, 페이스북 api, renderless component, 페이스북 앱, jquery, swift silent push, facebook APP, ios fcm background, jquery touch slider, vuejs render function, crazyarcade,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

Archives

Calendar

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

방문자수Total

  • Today :
  • Yesterday :
06-03 20:11

Copyright © Kakao Corp. All rights reserved.

티스토리툴바