OCJA(1Z0 - 808) || Difference between String and StringBuffer == Operator Vs equals method

  Рет қаралды 42,695

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер: 25
@MohanbabuB-li9ko
@MohanbabuB-li9ko 2 жыл бұрын
How I missed you all these days ? Never seen such a such a person like you .Hatsoff to you sir .
@masspandrom1146
@masspandrom1146 3 жыл бұрын
Wow your teaching ways is excellent sir excellent👏👏👏👏👏👏👏👏👏👏
@ajayshankhwar730
@ajayshankhwar730 4 жыл бұрын
the content of your videos is absolute gold
@rajeshjena9780
@rajeshjena9780 3 жыл бұрын
Hi Sir, Basically I am a tester, but sure I will be a developer in future, and it is only possible because of your online video classes. Thanks you sir for such wonderful classes.
@susmithabalachandar9877
@susmithabalachandar9877 Жыл бұрын
Excellent teaching!!
@Dineshkumar-ly2zy
@Dineshkumar-ly2zy 3 жыл бұрын
Thank you sir yours teaching is excellent...
@samarendumal8583
@samarendumal8583 3 жыл бұрын
Your contents are very helpful...thank you sir very much
@yt.user-zull
@yt.user-zull 6 жыл бұрын
Your way of teaching is excellent however. 👌
@nitishsharma6782
@nitishsharma6782 3 жыл бұрын
Excellent!!! Thanks for sharing this 👍
@yt.user-zull
@yt.user-zull 6 жыл бұрын
You missed something Sir. You didn't tell a fact about the String class. Read it carefully: I'm going to explain it after going through the definition of the equals() method in the String class. I found, this equals() method doesn't compare only the contents of the given String objects but it compares both the references and the contents of the two objects. First, it compares the references of both the objects using the == operator, if the references are found same then it simply returns true and no further computations are done. But if the references are found different then it doesn't directly return false but further it does some computations: It copies the contents of both the String objects into two different character arrays and then it compares the contents of both the arrays, if the contents are found same then it returns true and if the contents are also found different then it finally returns false. This is the complete fact/story of the equals() method of the String class.
@Islamicnoor-09
@Islamicnoor-09 4 жыл бұрын
if string equals() will compare both content and reference then output of second line sop(s1.equals(s2)) will be false but it is true so basically it will compare content only in case of String object because it is overridden method and i think you know what is overriding we defines our own implementation according to our requirement
@adityakulkarni9780
@adityakulkarni9780 5 ай бұрын
How it actually works is It first checks if both the objects are of type String. Then it checks if both the objects have same length. Then it checks both the string by every character.
@prasanthdhulipalla6040
@prasanthdhulipalla6040 6 жыл бұрын
Thankyou sir
@sameershaik1298
@sameershaik1298 3 жыл бұрын
which all child classes of Object overrides equals() method?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Sameer. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@hiccup2op
@hiccup2op 9 ай бұрын
Then how do we compare two StringBuffer sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 ай бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@mikegaming7160
@mikegaming7160 4 жыл бұрын
Please share the video link of string topic where you are giving notes in OCJP/SCJP video u have given too many notes that videos are awesome though this video is also good but no notes are provided
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Sanghvi. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@badruddinmoiyyedi2506
@badruddinmoiyyedi2506 6 жыл бұрын
nice sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Badruddin. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access. 1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808 Link: goo.gl/vcMKjz 2. Java 8 New Features In Simple Way Link: goo.gl/F2NfZi 3. Java 9 New Features In Simple Way : JShell, JPMS and More Link: goo.gl/s9PP1p 4. Complete JDBC Programming Part-1 Link: goo.gl/uT9sav 5. Complete JDBC Programming Part-2 Link: goo.gl/VmhM7t Regards DURGASOFT Online Team +918885252627, 7207212427/28 durgasoftonlinetraining@gmail.com
@MrParam20
@MrParam20 6 жыл бұрын
awesome.......
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Paremeshwar. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Use the below links to access Durga Sir Videos and Downloadable Materials with Life-Time Access. 1. Oracle Java Certification: Shortest Way To Crack OCA 1Z0-808 Link: goo.gl/vcMKjz 2. Java 8 New Features In Simple Way Link: goo.gl/F2NfZi 3. Java 9 New Features In Simple Way : JShell, JPMS and More Link: goo.gl/s9PP1p 4. Complete JDBC Programming Part-1 Link: goo.gl/uT9sav 5. Complete JDBC Programming Part-2 Link: goo.gl/VmhM7t Regards DURGASOFT Online Team +918885252627, 7207212427/28 durgasoftonlinetraining@gmail.com
@sekharb754
@sekharb754 3 жыл бұрын
Object r1="java"; Object r2="java"; System.out.println(r1.equals(r2)); but it is giving true. here y content comparison is happend..?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Sekhar. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
.equals() vs. == in Java - The Real Difference
8:48
Coding with John
Рет қаралды 197 М.
Differences between String  and StringBuffer
7:57
DURGA EDUCATION
Рет қаралды 547 М.
OCJA(1Z0 - 808) || Important FAQs on String and StringBuffer
10:35
Durga Software Solutions
Рет қаралды 23 М.
Differences Between Minecraft Java VS Bedrock
11:41
Skip the Tutorial
Рет қаралды 10 МЛН
OCJA(1Z0 - 808)|| Important Methods of String class: trim() method and its use case
23:23
OCJA(1Z0 - 808) || Importance of String Constant Pool (SCP)
14:34
Durga Software Solutions
Рет қаралды 29 М.
Interview Question | Comparable vs Comparator in Java
12:58
Telusko
Рет қаралды 648 М.
Java Tutorials || Java OOPS  ||Method Hiding || by Durga Sir
16:32
Durga Software Solutions
Рет қаралды 39 М.
OCJA(1Z0 - 808) || Need of StringBuilder and differences with StringBuffer
11:47
Durga Software Solutions
Рет қаралды 13 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН