1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answer Posted / karun_cts
the two instances are created with the same name but one is
storing in constant pool and another one is saved in the
non constant pool.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the new features in java 8? Explain
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
Explain the difference between comparator and comparable in java?
What is string and example?
make a method which any number and any type of argument and print sum of that arguments.....
What is application system?
Why is stringbuffer called mutable?
What is abstract class? Explain
Can a abstract class be declared final?
How many types of parsers are there?
Explain oops concepts in detail?
Explain working of call by reference function invoking.
What is final access modifier in java?
How do you input a string in java?
How does the garbage collector works in java?