Basic

[java] equals ๊ณผ == ์˜ ์ฐจ์ด

natrue 2021. 4. 7. 16:26
728x90

์ž๋ฐ”์—์„œ ๋ฌธ์ž๋‚˜ ๊ฐ์ฒด๋ฅผ ๋น„๊ตํ•  ๋•Œ๋Š” ==๊ฐ€ ์•„๋‹Œ equals๋ฅผ ์‚ฌ์šฉ

 

equals ==
๊ฐ์ฑ„๋ผ๋ฆฌ ๋‚ด์šฉ(๊ฐ’)์„ ๋น„๊ตํ•  ์ˆ˜ ์žˆ๋Š” '๋ฉ”์†Œ๋“œ' ๊ฐ์ฒด์˜ ์ฐธ์กฐ(์ฃผ์†Œ)๊ฐ’์„ ๋น„๊ตํ•˜๋Š” '์—ฐ์‚ฐ์ž'
๋‚ด์šฉ์ž์ฒด๋ฅผ ๋น„๊ต ์ฃผ์†Œ๊ฐ’์„ ๋น„๊ต
boolean๊ฐ’์„ ๋ฆฌํ„ด boolean๊ฐ’์„ ๋ฆฌํ„ด
์•ˆ์ •์ ์œผ๋กœ ๋ฌธ์ž์—ด์„ ๋น„๊ต ํ•ญ๋“ฑ ์—ฐ์‚ฐ์ž(Operator) 
๋ฐ˜๋Œ€ : !(a.equals(b));  ๋ฐ˜๋Œ€ : !=

 

 

 

 

 

 

 

 

 

์ฐธ๊ณ  : opentutorials.org/module/4378/26781

'Basic' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[html] input tag basic Attribute  (0) 2021.04.15
[html] table colspan rowspan  (0) 2021.04.14
OpenLayers ์˜คํ”ˆ๋ ˆ์ด์–ด  (0) 2021.03.24
์ ˆ๋Œ€๊ฒฝ๋กœ ์ƒ๋Œ€๊ฒฝ๋กœ ์ฐจ์ด  (0) 2021.01.14
Simple jquery coding test site  (0) 2021.01.12