What is string syntax?



What is string syntax?..

Answer / Tulika Srivastava

In Java, the basic syntax for defining a String is to enclose text within double quotes ("). If you want to include a double quote in the string, you must escape it using the backslash character ().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you convert an int to a double in java?

1 Answers  


transaction attributes ?

2 Answers  


Difference between vector and arraylist.

1 Answers  


what are different ways in which a thread can enter the waiting state? : Java thread

1 Answers  


Is singleton class immutable?

1 Answers  


Variable of the boolean type is automatically initialized as?

1 Answers  


Where are the local variables stored?

1 Answers  


Question 6 [9] 6.1 In what situations (in general) would you use a TreeMap? (3) 6.2 In what situations (in general) would you use a HashSet to store a collection of values?

1 Answers  


What are the types of loops in Java, and how are they used?

2 Answers  


is it possible to add a object in a HASHMAP

6 Answers   HCL,


What if static is removed from main method?

1 Answers  


How do you sort an array in java?

1 Answers  


Categories