Have a Question?

If you have any question you can ask below or enter what you are looking for!

Category: String

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