difference between String a; and String a=new String();?
y do v need to assign memory to the variable?
Answer Posted / janardhan
String a; :---
JVM will create String object in SCPM(String constant pool
memory)only.
String a=new String();:---
JVM will create String object in two memories
1. Heap memory
2. String constant pool memory.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are meta-annotations?
What does a za z0 9 mean?
Can we use this () and super () in a method?
Is string is a class in java?
What is the basic concepts of OOPS?
Can you override a final method?
How will you invoke any external process in java?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
Is null false in java?
What is stored procedure. How do you create stored procedure ?
What is autoboxing in java?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Define how can we find the actual size of an object on the heap?
Can we override constructor?
Explain the use of volatile field modifier?