Monday, August 30, 2010

Checked Exceptions

http://cafe.elharo.com/java/voting-for-checked-exceptions/

Saturday, August 28, 2010

Weak references

http://www.ibm.com/developerworks/java/library/j-jtp11225/

Friday, August 27, 2010

Thread Safety-Spring

http://www.javalobby.org/articles/thread-safe/index.jsp

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)

Friday, July 9, 2010

Spring Dependency Injection

Spring Dependency Injection
http://www.vogella.de/articles/SpringDependencyInjection/article.html

Sunday, November 22, 2009

Cloning

http://www.javabeat.net/tips/34-using-the-prototype-pattern-to-clone-objects.html

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));





}

}