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

suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?

Answer Posted / tck

It shows the systex error,The String is the final class in
java the syntax for string class is
String s1="rajinesh";
String s2="bhaskar";
so we have to declare the string variables like this .

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are arrays immutable in java?

1083


How does callback work in java?

1060


Write a factorial program using recursion in java?

1018


What is default locale java?

1114


How do you sort arrays in java?

927


What is the difference between array and array list in java?

1230


What is stream api in java8?

1178


explain copyonwritearraylist and when do we use copyonwritearraylist?

948


Can java arraylist hold different types?

1070


What is variable and its types?

1015


Can we overload final method in java?

981


What is constant in programming?

1110


What is array initialization in java?

1094


How to set the permissions to a file in java?

987


Where is stringbuffer stored?

983