answersLogoWhite

0

What does equals equals mean in java?

Updated: 12/24/2022
User Avatar

Wiki User

14y ago

Best Answer

operator to compare two objects.

The simple "=" sign is used for assignment - assigning a value to a variable. Here are examples of the two: x = 15; // Assign the value 15 to the variable if (x == 10) ... // Compare variable "x" with some value

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Equals as "=": This is an assignment operator in java which is used in an expression to assign a value to a variable.

Equals as function: This is a function in the java.lang.*; package in java to check whether two strings(words) are equal(identical) or not.

If the cases of two words are unequal then it returns false.

e.g.-

String a="cat",b="Cat";

a.equals(b);

The value returned would be false.

a.equalsIgnoreCase(b);

The value returned would be true.

The above function is also in the lang package.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does equals equals mean in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does exclamation equals mean in java?

The exclamation equals in Java(x!=) is used to represent the logical NOT.


Why comparator has equals method?

The Java superclass Object says that all Java objects have an equals method. Thus Comparator has an equals method.


Difference between equals equals and equal in java?

"==" in java is the binary operator which compares two values and gives a boolean result While "=" in java is a assignment operator which assigns a value to a variable.


How do you campaire Strings in java?

String class in Java has an 'equals' method that can be used to compare strings.


Can you overload plus equals in java?

yes to over load plus in java by using arthamatic operation we can perform it


What is subroutine in java?

Subroutine mean what (in java)?


What does Systemout mean in java?

System.out refers to the Java console.


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


What does the word java mean?

Java is an island in Indonesia, but in slang it means coffee.


What does the term Java logging mean?

Java logging is data logging for the Java platform. Logging is a term in software for recording activity. Therefore Java logging is recording activity for Java.


Does java script coding mean using it for Java programs only?

Java script coding is computer coding, many things require Java, and you need to have Java enabled to view these types of programs.


Which one is more advanced core java or java?

The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming, from desktop applications to Java EE applications. Well What exactly you mean by Java?