Tag Archives: Explain SCP in Java

What is the importance of SCP(String constant pool)?

What is the importance of SCP(String constant pool)?

What is the importance of SCP(String constant pool)? There are two ways to create a String object in Java: Using the new operator. For example, String str = new String("Java4us");. Using a string literal or constant expression). For example, String str="Java4us"; (string literal) or String str="Java" + "4us"; (string constant expression). In our program, if a String object is repeatedly required then it’s not recommended to create ...

Read More »

Responsive WordPress Theme Freetheme wordpress magazine responsive freetheme wordpress news responsive freeWORDPRESS PLUGIN PREMIUM FREEDownload theme free