How strings are created in java?



How strings are created in java?..

Answer / Manoj Kumar Ram

Strings can be created in Java using string literals, String constructor, StringBuilder or by using the StringBuffer class. String literals are enclosed in double quotes and can be assigned to a variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are conditionals and its types?

1 Answers  


What is difference between char array and string?

1 Answers  


can we write a program with out a class in core java?

11 Answers   Wipro,


Why is the type for real numbers called double?

1 Answers  


What is the map interface in java programming?

1 Answers  


Difference between prefix and postfix forms of the ++operator?

3 Answers  


if we give input as " hi how are you" then the output should be "uoy woh"...it should skip odd words in the input and should reverse even words from the end of string...can anyone help me to write this program in java

1 Answers  


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

1 Answers  


Explain about data types?

1 Answers  


How is hashset defined in java?

1 Answers  


What will happen if a thrown exception is not handled?

1 Answers   ABB, Akamai Technologies, Infogain,


How to check if a list is sorted in java?

1 Answers  


Categories