Abstract class in Java

A class that is declared with abstract keyword, is known as abstract class in java. It can have abstract and non–abstract methods (method with body) Abstraction in Java Abstraction is a process of hiding the implementation details and showing only functionality to the user Abstraction lets you focus on what the object does instead of … Read more

DEGREES OF DATA ABSTRACTION

In the early 1970s, the American National Standards Institute (ANSI) Standards Planning and Requirements Committee (SPARC) defined a framework for data modeling based on degrees of data abstraction. The ANSI/SPARC architecture (as it is often referred to) defines three levels of data abstraction: external, conceptual, and internal. You can use this framework to better understand … Read more

SimpleTimeZone class in java

The SimpleTimeZone class is a convenient subclass of TimeZone. It implements TimeZone’s abstract methods and allows you to work with time zones for a Gregorian calendar. It also computes daylight saving time. SimpleTimeZone defines four constructors. One is SimpleTimeZone(int timeDelta, String tzName) This constructor creates a SimpleTimeZone object. The offset relative to Greenwich mean time (GMT) is timeDelta. … Read more

The ArrayDeque Class in java

Java SE 6 added the ArrayDeque class, which extends AbstractCollection and implements the Deque interface. It adds no methods of its own. ArrayDeque creates a dynamic array and has no capacity restrictions. (The Deque interface supports implementations that restrict capacity, but does not require such restrictions.) ArrayDeque is a generic class that has this declaration: … Read more

The PriorityQueue Class in java

PriorityQueue extends AbstractQueue and implements the Queue interface. It creates a queue that is prioritized based on the queue’s comparator. PriorityQueue is a generic class that has this declaration: Here, E specifies the type of objects stored in the queue. PriorityQueues are dynamic, growing as necessary. PriorityQueue defines the six constructors shown here: The first constructor … Read more