How do you compare two strings? any predefined method for
this?

Answer Posted / niranjanravi

equals() method

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some features of the abstract class.

587


How to perform binary search in java?

567


Can we extend immutable class?

524


Is 0 a prime number?

568


Can one thread block the other thread?

599






What is object in java?

526


Why unicode is important?

463


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

555


What is internal iteration in java se 8?

625


What is the do while loop syntax?

551


What is a predicate method?

560


Which of the following classes will have more memory allocated?

577


How do you start a thread?

542


Explain about static nested classes in java?

602


Define the term string pool?

582