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.
Submitted by heartin on Wed, 09/12/2012 - 03:43
Object-Oriented Programming (OOP) uses "objects" to model realworld objects. Object-Oriented Programming (OOP) consist of some important concepts namely Encapsulation, Polymorphism, Inheritance and Abstraction. These features are generally referred to as the OOPS concepts.
Submitted by heartin on Thu, 09/06/2012 - 05:07
Enums in java are classes and each constant in an enum is a public final static field that represents an instance of its enum class. Unlike enums in java which are classes, traditional enumerated types ( used in java before java 5 and in some other languages) were a set of int/String constants.
Submitted by heartin on Sat, 08/25/2012 - 01:39
According to mathematics, remainders are always positive. However, in java, when the remainder operation returns a nonzero result, it has the same sign as its left operand. Though most mathematicians won’t agree, Java Language Specification still refers to % as a remainder operator only.
Submitted by heartin on Sat, 08/25/2012 - 01:28
An expression consists of operands and operators. A logical expression (e.g. a>b) is an expression that evaluate to a true or a false value. Operators with higher precedence are evaluated before operators with relatively lower precedence, when they come together.
Pages