Welcome to the World of JAVA Programing!!!
A Java program is mostly a collection of objects talking to other objects by invoking
each other's methods. Every object is of a certain type, and that type is defined by a
class or an interface. Most Java programs use a collection of objects of many different
types. Our objective is to come up with java example programs for each and every class provided by java documentation,
which can be very much helpful for java beginners.
Knowledge Center block on right side of the page will randomly posts some quick information on java language. It
could be quick learning for new java learners.
Please send comments, broken link reports, errors, suggestions, and questions about this site to the author at
A collections framework is a unified architecture for representing and manipulating collections. Java Collections Framework
reduces programming effort, increases program speed and quality, allows interoperability among unrelated APIs, fosters software reuse.
A data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.
Data structures provide a means to manage large amounts of data efficiently. efficient data structures are a key to designing efficient algorithms.
We have collected list of java interview programs from few software engineers and also with my personal experience. In this
section, we are trying to give you the best solutions for these problems. Good interviewers are more interested in your ability to code.
A sorting algorithm is an algorithm that puts elements of a list in a certain order. The most-used orders are numerical order and
lexicographical order. Efficient sorting is important for optimizing the use of other algorithms such as search and merge...
JDBC stands for Java Database Connectivity. JDBC API is a collection of classes and interfaces, which help a Java application to
connect to SQL based relational databases by abstracting vendor specific details of the database. JDBC enables Java developers to connect to...
Java Annotations are also called Metadata. Annotations are introduced with JDK 5 onwards. Annotations allows us to add some form of metadata
information into our source code, but it doesnot change the execution flow of the program. These annotations...
When to use LinkedList or ArrayList?
Accessing elements are faster with ArrayList, because it is index based.
But accessing is difficult with LinkedList. It is slow access. This is
to access any element, you need to navigate through the elements one by
one. But insertion and deletion is much faster with LinkedList, because
if you know the node, just change the pointers before or after nodes.
Insertion and deletion is slow with ArrayList, this is because, during
these operations ArrayList need to adjust the indexes according to
deletion or insetion if you are performing on middle indexes. Means,
an ArrayList having 10 elements, if you are inserting at index 5, then
you need to shift the indexes above 5 to one more.