What is difference between “==” and equals()?
“==”: It compares references (memory locations). It does not compares values in the memory location. Hence it is not recommended to find the equality of two objects. It is mostly used to compare primitive types.
equals(): It is used to find the equality of two objects. It actually compares with the values that an object contains.
Is This Answer Correct ? | 5 Yes | 0 No |
How do you download stubs from Remote place?
Can we override compareto method?
What is OOPs & Why?
What is hash table in java?
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
What is the use of flag?
What are the 5 types of research methods?
What is a function in java?
relation between list and linked list
How can you read an integer value from the keyword when the application is runtime in java? example?
What is collections framework?
i need example for java abstraction. where we use abstraction and why we need abstraction.