Blog Archives

Interfaces in Java

An interface in Java represents an abstract type; it is a collection of abstract methods and constants. All methods in an interface are abstract, and thus they have only signatures. All variables in an interface are implicitly final and static,

Tagged with: , , , ,
Posted in Java

A Stack Class in Java

What is a Stack? In English, a stack is a pile of objects. In Computer Science, a stack is a linear collection which allows adding or removing elements from the same end (the top). Stack elements are processed in a

Tagged with: , , , ,
Posted in Java