JavaTweets
Blog on Java Programming and Interview Questions
Categories
(Move to ...)
Home
SCJP Objective Questions
ArrayList Examples
Date & Calendar Examples
Files and I/O
java.util.zip
LinkedList Examples
Object Cloning
Serialization
Wrapper classes
Collections Framework
Multithreading
HashSet Examples
TreeSet Examples
Utility class - Collections
HashMap Examples
String Examples
TreeMap Examples
Exception Handling
▼
Saturday, 25 August 2012
When should I use an interface instead of an abstract class?
›
Abstract class is an incomplete implementation of some concept. This incomplete implementation may be different in different context. Der...
2 comments:
Friday, 24 August 2012
Compare two StringBuffer objects in Java
›
We can't use the equals method of the StringBuffer class for comparing two StringBuffer objects.The StringBuffer class equals method r...
New Java 7 Features: Using String in the Switch Statement
›
In Java SE 7 and later, you can use a String object in the switch statement's expression. The following code example, StringSwitchDemo...
2 comments:
Sunday, 12 August 2012
Comparing String with StringBuilder in Java
›
This example shows how to compare String object with a StringBuilder object using equals and contentEquals methods of the String class. ...
Comparing String with StringBuffer in Java
›
This example shows how to compare String object with a StringBuffer object using equals and contentEquals methods of the String class. ...
›
Home
View web version