Monday, August 30, 2010
Saturday, August 28, 2010
Friday, August 27, 2010
Wednesday, August 25, 2010
Java Interview questions
Java Interview Questions
--------------------------
1)Linked List vs Array List
2)Weak reference vs Strong Reference
3)Sort objects by Date
Ans:http://download.oracle.com/javase/tutorial/collections/interfaces/order.html
Ans:http://codingforums.com/showthread.php?t=43014
4)Abstract class vs Interface
5)Thread.join()
6)Ways to stop a Thread
7)Deadlocks
8)Avoid Deadlocks
Spring
--------
1)Different types of injection
2)Bean Context vs Application context
3)Why Spring
4)Spring with Hibernate with Struts
SQL
----
1)Delete vs Truncate
2)SQL Views
3)
--------------------------
1)Linked List vs Array List
2)Weak reference vs Strong Reference
3)Sort objects by Date
Ans:http://download.oracle.com/javase/tutorial/collections/interfaces/order.html
Ans:http://codingforums.com/showthread.php?t=43014
4)Abstract class vs Interface
5)Thread.join()
6)Ways to stop a Thread
7)Deadlocks
8)Avoid Deadlocks
Spring
--------
1)Different types of injection
2)Bean Context vs Application context
3)Why Spring
4)Spring with Hibernate with Struts
SQL
----
1)Delete vs Truncate
2)SQL Views
3)
Friday, July 9, 2010
Spring Dependency Injection
Spring Dependency Injection
http://www.vogella.de/articles/SpringDependencyInjection/article.html
http://www.vogella.de/articles/SpringDependencyInjection/article.html
Sunday, November 22, 2009
Sunday, November 15, 2009
hashmap
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package corejava;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.TreeSet;
import java.lang.Thread;
/**
*
* @author VijaykumarRamalingam
*/
public class hasmap {
public static void main(String args[])
{
//Hashmap vs Hashtable
//Synschrnized
//null key and null values
HashMap s=new HashMap();
s.put("1","b");
s.put(null, "5");
TreeSet sd=(TreeSet)s.keySet();
Iterator i= sd.iterator();
System.out.print(s.get(null));
Hashtable s3=new Hashtable();
s3.put(1,"b");
s3.put(1, null);
System.out.print(s3.get(1));
}
}
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package corejava;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.TreeSet;
import java.lang.Thread;
/**
*
* @author VijaykumarRamalingam
*/
public class hasmap {
public static void main(String args[])
{
//Hashmap vs Hashtable
//Synschrnized
//null key and null values
HashMap s=new HashMap();
s.put("1","b");
s.put(null, "5");
TreeSet sd=(TreeSet)s.keySet();
Iterator i= sd.iterator();
System.out.print(s.get(null));
Hashtable s3=new Hashtable();
s3.put(1,"b");
s3.put(1, null);
System.out.print(s3.get(1));
}
}
Subscribe to:
Posts (Atom)