What is string in Java explain different methods in string class with an example program?

In Java, string is basically an object that represents sequence of char values . An array of characters works same as Java string. For example: char[] ch={‘j’,’a’,’v’,’a’,’t’,’p’,’o’,’i’,’n’,’t’};

Sizin İçin Seçtik  How many methods are there to declare a String?

Leave a Reply

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