Why do we use string?



Why do we use string?..

Answer / Diwakar Kumar Tiwary

Strings are used in Java for handling textual data. They are immutable (once created, their value cannot be changed) and are fundamental for creating variable names, method names, and labels.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can the interface be final?

1 Answers  


String is mutable or immutable?

3 Answers  


Can we assign integer value to char in java?

1 Answers  


What is a numeric literal?

1 Answers  


What is a return in java?

1 Answers  


what are class,constructor and primitive data types?

2 Answers   IBM,


Why is it important to initialize a variable?

1 Answers  


What are the drawbacks for singleton class?

1 Answers  


What are the 4 versions of java?

1 Answers  


Which is the best way to use for String concatenation in Java?

7 Answers   HCL,


What are the advantages of arraylist over arrays?

1 Answers  


what is the difference between HashMap and Hashtable

17 Answers   Value Labs, Virtusa,


Categories