-
Memory Allocation
What is the difference between below 2 statements? String s1=new String("abc");String s2="abc";How it will allocate in memory?
-
Exception on finalize ()?
If Exception occurs in finalize() what happened to garbage collector? It will run or not? Explain
-
Find the Output
class A{ public static void main(String[] a){ System.out.print(String.valueOf(1)+String.valueOf(2)); String s1="s1"; String s2=s1.toString(); System.out.print(","+(s1==s2)); }}