পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Thursday, January 19, 2017

Java.util.Date Class

Introduction

The java.util.Date class represents a specific instant in time, with millisecond precision.

Class declaration

Following is the declaration for java.util.Date class:
public class Date
   extends Object
   implements Serializable, Cloneable, Comparable<Date>

Class constructors

S.N. Constructor & Description
1 Date()
This constructor allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.
2 Date(long date)
This constructor allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.

Class methods

S.N. Method & Description
1 boolean after(Date when)
This method tests if this date is after the specified date.
2 boolean before(Date when)
This method tests if this date is before the specified date.
3 Object clone()
This method return a copy of this object.
4 int compareTo(Date anotherDate)
This method compares two Dates for ordering.
5 boolean equals(Object obj)
This method compares two dates for equality.
6 long getTime()
This method returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
7 int hashCode()
This method returns a hash code value for this object.
8 void setTime(long time)
This method sets this Date object to represent a point in time that is time milliseconds after January 1, 1970 00:00:00 GMT.
9 String toString()
This method converts this Date object to a String of the form.

Methods inherited

This class inherits methods from the following classes:
  • java.util.Object

No comments:

Post a Comment