Category: JAVA STRING INTERVIEW QUESTIONS AND ANSWERS

String is not a primitive data type . String is a derived data type which is also called reference type because they refer to an object . String class is present in Java.lang package . There are many functions that need to be called upon when processing a string ,such functions are indexOf() , equals() , substring() , toUppercase() etc. Primitive data types don’t have these functions .

Leave a Reply

Your email address will not be published. Required fields are marked *