Thread: String pool

Forum : New To Java   03-1-2018 03:50:34 PM
User Image


Joined: Nov 10, 2017

Points: 100

Threads: 11

Posts: 4

String pool

| Quote Date : Jan 3, 2018    Views:736    

define Purpose of String pooling in java with real time Scenario?

tags: core java


User Image


Joined : Jul 2, 2017

Points : 100

Threads: 0

Posts: 10

Re: String pool

Reply Date : Jan 13, 2018

purpose of String pooling
in many times in the  address city, state, nation  names are common for multiple users at that we can go for String pooling because it saves the memory ,for every user It can not create new String object first it will check the city name is already there or not ,if it is exists then it do not create new object it will refer the existing object reference.


Load More

No More Comments