Saturday, February 20, 2010

Java Collection - Pic

Java Puzzles


1. Is it possible to cast like this ?
List strings = new ArrayList();
List objects = strings;

2. Will this work ?
List strings = new ArrayList();
Collection objects = strings;

3. Can we do it ?
Collection collection = new ArrayList();
collection.add("newString");

4. will this work ?
List objects = new ArrayList();
String s = (String) objects.get(0);


Sunday, September 20, 2009

Design Patterns

"Someone has already solved your problems."

Hollywood Principle

"Don't call us, We will call you"

Saturday, July 18, 2009

Effective Java


Totally 78 items have been explained by Joshu Bloch in his Effective Java (second edition)
  1. Consider static factory methods instead of constrcutors.

Thursday, April 10, 2008

File Uploading

File upload:
This is a site to load sharable files.

http://www.freewebspace.net/guide/diskstorage.shtml
http://www.snapdrive.net/?utm_source=freewebspace.net&utm_medium=textad

What all can you do ?
1. Upload your files to download it later.
2. Upload your files to download it from other place.
3. Upload your files and share your credentials to known person to download them.