Telegram Group & Telegram Channel
🚫 Антипаттерн недели: Использование == для сравнения строк

В Java строки (String) — это объекты, а оператор == сравнивает ссылки, а не их содержимое. Это может привести к неожиданным ошибкам при сравнении строк, особенно если строки создаются динамически.

✔️ Используйте метод equals(), который сравнивает содержимое строк, а не ссылки.

Java Learning 👩‍💻
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/Java_per_month/3271
Create:
Last Update:

🚫 Антипаттерн недели: Использование == для сравнения строк

В Java строки (String) — это объекты, а оператор == сравнивает ссылки, а не их содержимое. Это может привести к неожиданным ошибкам при сравнении строк, особенно если строки создаются динамически.

✔️ Используйте метод equals(), который сравнивает содержимое строк, а не ссылки.

Java Learning 👩‍💻

BY Java Learning




Share with your friend now:
tg-me.com/Java_per_month/3271

View MORE
Open in Telegram


Java Learning Telegram | DID YOU KNOW?

Date: |

However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.

Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.

Java Learning from us


Telegram Java Learning
FROM USA