Student @ITER SOA University
Hello! My name is Akash Dev and I am a computer science student with a passion for technology. I started this blog as a way to document my learning journey and share my knowledge and insights with others who are also interested in the field of computer science. I cover a wide range of topics including programming languages, software development, and emerging technologies. I hope my blog will be a valuable resource for anyone looking to learn more about computer science and technology. Join me as I explore the fascinating world of computer science and discover new things together.
Niraj Kumar Gangale
When we use the (==) operator java compares the value of the variables basically it checks whether the variables are pointing to the same object or different.
No Akash the, Equal to (==) does not compare that variable is pointing to the same operator it just compares the value itself.
String firstString = "Bunny"; String secondString = "Bunny";Both the firstString and secondString have equal values of the address i.e. a Hexadecimal value, but saying they are pointing to the same object or different means also the same.