Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

strings in java are objects.why?

Answer Posted / modi

In Java strings are objects designed to represent a sequence
of characters. Because character strings are commonly used
in programs, Java supports the ability to declare String
constants and perform concatenation of Strings directly
without requiring access to methods of the String class.
This additional support provided for Java Strings allows
programmers to use Strings in a similar manner as other
common programming languages.
A Java String is read-only and once created
the contents cannot be modified.

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to perform linear search in java?

946


Give example to differentiate between call by value and call by reference.

1060


How does map works in java?

999


What are the two main uses of volatile in Java?

1062


What is a dynamic array in java?

1178


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1064


What are latest features introduced with java 8?

1086


Is void a wrapper class?

946


How is the marker interface used in Java?

1100


What does a method signature consist of?

984


How can we make a class singleton?

1073


What is the purpose of the finalize() method?

1246


What is method overloading with type promotion?

1273


Does constructor return any value?

1026


What is final access modifier in java?

1147