How do you compare strings in java?



How do you compare strings in java?..

Answer / Rajat Kumar Tyagi

This question belongs to Java, not PHP. In Java, you can use the equals() method or comparison operators like == for comparing strings.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Can age be a variable?

1 Answers  


What is apache and php?

1 Answers  


How to invoke a user function?

1 Answers  


What is a collection in php?

1 Answers  


What are the different types of statements that are present in php?

1 Answers  


What is the meaning of "enctype= multipart/form-data" ?

1 Answers  


What is a php object?

1 Answers  


Explain the types of functions for Splitting String?

1 Answers  


What are the method available in form submitting?

1 Answers  


How to add different images in php program like a job site.......

2 Answers  


Is age interval or ordinal data?

1 Answers  


Does php 7 support multiple inheritance?

1 Answers  


Categories