whats the difference between == and .equal ?

Answer Posted / tarun

equals() method compare the character inside the string object

== operator compare two object reference to see whether they
refer same instance

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by classloader in java?

573


Explain all java features with real time examples

1210


How can you write a loop indefinitely in java programming?

552


What is vector?

591


Why are pointers not secure?

539






How do you sing an Applet ?

2038


Java.util.regex consists of which classes?

547


What is the difference between double and float variables in java?

636


What is double checked locking in singleton?

610


What is object cloning in Java?

636


Explain about fail fast iterators in java?

564


What are the 6 mandatory procedures for iso 9001?

531


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

593


Is string pool garbage collected?

549


What is java’s garbage collected heap?

537