Загрузка...

Why does Java have both .length() and .length? why is the syntax different?

Why does Java have both .length() and .length? 🤔

If both are used to get the length,
then why is the syntax different? 😵‍💫

In this reel, understand:
✅ Difference between Method vs Variable
✅ Logic behind String.length()
✅ Why Array.length works without brackets
✅ Why ArrayList uses size()

This is a very common Java interview conceptual question 🚀

Save this reel for revision 📌

#java #javaprogramming #dsa #coding #arraylist #softwareengineer

Видео Why does Java have both .length() and .length? why is the syntax different? канала Ekta Agrawal
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять