How SubString works in Java

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

How SubString works in Java

Subtring method is defined in String class in java.lang package and used to create small strings from a big string. how Substring method works intern
http://javarevisited.blogspot.com/2011/10/how-substring-in-java-works.html
  • Total Hits: 14225

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 185 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2011-11-04 15:48:05

  • Submitted By: Javin Paul

  • Set as Favorite

Description:

Subtring method is defined in String class in java.lang package and used to create small strings from a big string. how Substring method works
internally is a tricky part and can lead to some subtle programming bug and memory leak if not understood correctly. This article explains how
Substring method works and where Sub-string is beneficial and where its not. This article is not only good from interview point of view but also from performance perspective to avoid some serious mistakes while using substring in Java.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 29.19%  54
 Two starsTwo star  Vote LeftVote MiddleVote Right 7.57%  14
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 8.65%  16
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 32.43%  60
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 22.16%  41

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements