0
how to declare string?
4 Respuestas
+ 1
exist also: StringBuilder and StringBuffer "Multithread"
+ 1
There are two ways to do this by String literal and by new. String literal is preferred way due to better performance and low memory consumption.
string literal:
String name = "Piyush"
String class:
String name = new String ("piyush");
0
String greeting = "Hi how are you";
0
String x="hello "