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...


Explain any five string methods?



Explain any five string methods?..

Answer / Anupam Kumar Gautam

1. length(): Returns the length of a string.n2. substring(start, end): Extracts a part of the string from the specified index range.n3. toUpperCase()/toLowercase(): Converts the entire string to upper or lower case respectively.n4. trim(): Removes leading and trailing whitespaces from a string.n5. replace(oldChar, newChar): Replaces all occurrences of an old character with a new one.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Is Scala Statically-Typed Language?

1 Answers  


What is Range in Scala? How to create a Range in Scala?

1 Answers  


Explain the difference between function and method in scala?

1 Answers  


Explain recursion through a program?

1 Answers  


What is a nexted function in scala?

1 Answers  


How to implement interfaces in Scala?

1 Answers  


What is repl in scala?

1 Answers  


What is a singleton object in scala?

1 Answers  


What is a Companion Object in Scala? What is a Companion Class in Scala? What is the use of Companion Object in Scala?

1 Answers  


What is the difference between :: and #:: in Scala? What is the difference between ::: and #::: in Scala?

1 Answers  


What are the Popular Scala-Based Frameworks to develop RESTful Web Services or REST API?

1 Answers  


What are streams in scala?

1 Answers  


Categories