Computer Science, asked by Harshi666, 1 year ago

For which type of fuction is 'String' used in Java? (to declare what?)

Answers

Answered by wwwalison8888a
4

String is used in Java for storing more than one character like for names and others..


Harshi666: thanks
wwwalison8888a: So why did you reported fool...
Harshi666: I did not report you fool
Harshi666: someone else did that
wwwalison8888a: Ok well keep shut now...sorry for what I said..
Harshi666: huh.. at least u realised
Harshi666: learn how to control your acts..
wwwalison8888a: Keep shut...
Harshi666: you too sense less.
Harshi666: don't speak what ever comes to ur mouth...
Answered by priyanshikakatyayan
1
It's used for declaring a word or a sentence.
eg: String a=" Priyanshika";

Hope it helps !!!
Similar questions