No video

Tricky Interview Question | Difference between String Literal and String Object in Java

  Рет қаралды 9,083

TechStack9

TechStack9

Күн бұрын

This video explains the difference between String Literal and String Object in Java with an example.
Checkout the Playlists:
👉 Java Tutorial For Beginners:
• #1 JAVA INTRODUCTION |...
👉 Design Patterns in Java
• What is Singleton Desi...
👉 Tricky Java Interview Questions
• Tricky Interview Quest...
👉 Important Java Programs for Interview:
• Important Java Program...
👉 How to Avoid Common Mistakes as a Java Beginner
• How to Avoid Common Mi...
👉 Interview Coding Challenges
• Coding Interview Quest...
👉 MySQL Tutorial For Beginners:
• MySQL Tutorial For Beg...
👉 What is Agile | Understanding Agile Software Development Process:
• What is Agile | Unders...
👉 Selenium with Java Tutorial For Beginners:
• #1 Introduction to Sel...
LIKE | SHARE | SUBSCRIBE 😊
#Stringliteral #StringObject #java
👇👇👇
Follow me on
LinkedIn: / mahesh-babu-mande-6592...
Telegram: t.me/techstack9
Twitter: / mahesh1049

Пікірлер: 7
@sureshmariyappan542
@sureshmariyappan542 6 ай бұрын
Clear explanation bro. Keep posting many videos. As a beginner it is very easy to understand
@steffie4099
@steffie4099 3 жыл бұрын
so should I use string literals or string object ...which is more effiecient??....is the string literals better than string object?
@TechStack9
@TechStack9 3 жыл бұрын
If you do not modify string so frequently then go for String literal. If you want to perform some operations on the String using string methods then chose String Object. Actually, modifying String Object is also not efficient. You can use either StringBuilder or StringBuffer for that. You can watch the below video for the same: kzfaq.info/get/bejne/ptWYZ8hputvGkqM.html
@JohnDoe-ud2eu
@JohnDoe-ud2eu 3 жыл бұрын
References are not memory locations or any physical addresses
@devanampriya1791
@devanampriya1791 Жыл бұрын
they actually are.
@harshitverma2707
@harshitverma2707 Жыл бұрын
@@devanampriya1791 but == compares the content of integer variables?? Isn't it ??
@devanampriya1791
@devanampriya1791 Жыл бұрын
@@harshitverma2707 equals() checks for actual content .== checks references
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 17 МЛН
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 612 М.
What is String Immutable || Why String Object Is Immutable In Java (Hindi)
17:36
Difference Between String StringBuffer and StringBuilder in Java by Deepak
10:54
String Constant Pool in Java || String Object Creation in Java
23:51
Smart Programming
Рет қаралды 214 М.
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00