Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more - View Single Post - Java Interview Questions
View Single Post
Old 03-23-2010, 07:42 AM   #3 (permalink)
jhoney142
Junior Member
 
Join Date: Feb 2010
Posts: 25
Default Re: Java Interview Questions

Hi,
i have some dots in java
1.How synchronization can be done for multithreading environment without using the "synchronized" keyword?
2.What is the difference between below 2 statements? String s1=new String("abc");String s2="abc";How it will allocate in memory?
3.Can we make use of "this" keyword reference inside a abstract method or abstract class? Explain
4.If Exception occurs in finalize() what happened to garbage collector? It will run or not? Explain
5. Find the out put:
class A{ public static void main(String[] a){ System.out.print(String.valueOf(1)+String.valueOf( 2)); String s1="s1"; String s2=s1.toString();
jhoney142 is offline   Reply With Quote
Sponsored Links