Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How does indexof work?



How does indexof work?..

Answer / Priya Singh

indexOf in Java is a method used to find the index of a specific character or substring within a String. If found, it returns the first index; otherwise, it returns -1.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Which data type is class in java?

1 Answers  


What is the purpose of javac exe?

1 Answers  


What are variable names?

1 Answers  


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

1 Answers  


Why does java not support operator overloading?

1 Answers  


What are java annotations?

1 Answers  


What is "finally" keyword?

10 Answers  


What is difference between fileinputstream and filereader in java?

1 Answers  


what is the difference between future and callable interface in java?

1 Answers  


How do you compare arrays in java?

1 Answers  


How to use arraylist in java netbeans?

1 Answers  


Explain about doubly linked list

1 Answers   Aditi Placement Service,


Categories