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 |
What is 16 bits called?
Explain inner classes ?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
what is the difference between preemptive scheduling and time slicing? : Java thread
What do you mean by buffering?
What is not thread safe?
Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance.
what is a static block?
How many bytes is a url?
What are the main uses of java?
What classes of exceptions, caught by a catch clause?
What is a nested class?