Submitted by heartin on Tue, 11/13/2012 - 00:02
Packages are used in Java for organizing your class files. It can be considered as different folders to organize your files within your file system. You can put related class files together in one package. Java groups predefined classes into different packages like java.lang, java.util, java.io etc.
Submitted by heartin on Fri, 10/19/2012 - 22:33
The wrapper classes provide a mechanism to "wrap" primitive values in an object so that the primitives can be included in activities only for objects, like being added to Collections. There is a wrapper class for every primitive in Java. The wrapper class for int is Integer and the class for float is Float and so on. Wrapper classes also provide many utility functions for primitives like Integer.parseInt().
Submitted by heartin on Thu, 10/18/2012 - 11:28
In object oriented programming or in Unified Modelling, relationships between objects can be classified as association, aggregation, composition and inheritance.
Association is a relationship between two objects. Here objects might not be completely dependent on each other.
Submitted by heartin on Mon, 09/24/2012 - 02:04
Custom Exceptions are user defined Exception classes that extend either Exception class or RuntimeException class.
Submitted by heartin on Mon, 09/24/2012 - 00:56
An exception is a divergence from an application’s normal behavior. Read about exception hierarchy in Java, checked and unchecked exceptions, and how to handle exceptions in Java.
Submitted by heartin on Wed, 09/19/2012 - 22:14
A class represent the properties and behabiour of an object. An methods represent these behaviours.
Submitted by heartin on Wed, 09/19/2012 - 02:29
A variable is something that can hold some data. Class variables or static variables belong to class. Instance variables are non-static variables belong to objects. Local variables are local within blocks or methods and they die when we exit that block or method.
Submitted by heartin on Sat, 09/15/2012 - 13:00
Here we will discuss the details of downloading, installing and configuring java for first time. You will first find the steps in writing followed by complete screenshots of these steps as a slideshow.
Submitted by heartin on Fri, 09/14/2012 - 21:38
Read about JDK, JRE, JVM, classes, objects and methods in brief and write, compile and execute your first java program. Discusses why Java is called as a compiled interpreted language and also why java is platform independent.
Submitted by heartin on Thu, 09/13/2012 - 20:03
Both Enumeration and Iterator are interfaces in Java for getting successive elements. Enumeration is older while iterator was introduced later with some improvements. Iterator has taken the place of Enumeration in the Java collections framework. ListIterator is a sub-interface of Iterator and allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator's current position in the list.