If you are a Java programmer (which should be the case if you are reading this article), you will know the importance of knowledge of Strings. Because of their wide usage, handling of Strings become very important. This is also one among the hot topic for interview, specially at the initial stage of your carrier.
In Java, we have two ways of creating String objects, using String literal and creating new String object and this article aims at providing the difference between the 2 options.
Showing posts with label String. Show all posts
Showing posts with label String. Show all posts
Apr 22, 2016
Sep 19, 2014
How String's substring function can cause memory leak in Java 6??
by manoj / in Java, Memory Leak, Performance, String / 7 comments /
Hi friends, this is my first post on Java Insight blog. Hopefully this would be of little help to you.
Lets start off with String class, most widely used Java class may be.
We all use String's substring method so frequently while programming, but have you ever given a thought of how it works. How memory is managed? Can it lead to memory leaks? Truly speaking, I never had, until I stayed whole night in office debugging an application for memory leaks.
Enough of intro to engage you further I guess, so lets jump straightaway into action.
Lets start off with String class, most widely used Java class may be.
We all use String's substring method so frequently while programming, but have you ever given a thought of how it works. How memory is managed? Can it lead to memory leaks? Truly speaking, I never had, until I stayed whole night in office debugging an application for memory leaks.
Enough of intro to engage you further I guess, so lets jump straightaway into action.
Subscribe to:
Posts (Atom)