1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answers were Sorted based on User's Feedback
Answer / ravikiran
first one will create an object on the heap
second one will create two objects one will saved on the
heap and another will get saved on the string pool
| Is This Answer Correct ? | 0 Yes | 6 No |
Answer / p.sreekiran
in first string class it create in heep memory and second
is created object in constant memeory we cannot change the
second one
| Is This Answer Correct ? | 2 Yes | 13 No |
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is the right data type to represent a price in java?
How does synchronized modifier work?
What is java literals?
What is a data structure java?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,
Explain about arraylist?
Difference between java and javascript
what is object-oriented programming in java?
What is complexity and its types?
Tell me are there implementations for sorting and searching in the java libarary?
What is jit compiler ?