whats the difference between == and .equal ?
Answer Posted / guest
== compares the objects but .equals compare the value of the
objects.
| Is This Answer Correct ? | 18 Yes | 9 No |
Post New Answer View All Answers
What are data types in programming?
What is t type java?
Is hashmap thread safe?
Does java support Operator Overloading?
How do you invoke a method?
What is the difference between static and global variables and also define what are volatile variables?
Is java good for beginners?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What do you understand by overloading and overriding in java?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is the difference between a local variable and an instance variable?
What are autoboxing and unboxing? When does it occur?
Is there any limitation of using inheritance?
Can we use synchronized block for primitives?
What is sizeof in java?