What is Java Update?This article applies to:
This page describes the Java Update feature with these sections: I. What is Java Update? The Java Update is a feature that keeps your computer up-to-date automatically with the latest Java releases. Installing the Java Runtime Environment automatically installs the Java Update feature. The Java Update feature connects to java.com at a scheduled time and checks to see if there is an update available. II. What does it do?
III. Configure Java Updates
Note: This feature is available only on Windows XP, 2003, 2000 (SP2 or higher) and set by default for these operating systems.
There are two notification options:
You can manually check for an update any time by clicking on Update Now. |
Java Guide Line
Sunday, December 19, 2010
What is Java Update? " by Oracle.com"
Java Current Timestamp
package utils;
import java.util.Calendar;
public class JavaCurrentTimestamp {
/**
* @param args
*/
public static void main(String[] args) {
// create a java calendar instance
Calendar calendar = Calendar.getInstance();
// get a java.util.Date from the calendar instance.
// this date will represent the current instant, or "now".
java.util.Date now = calendar.getTime();
// a java current time (now) instance
java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(now.getTime());
System.out.println("Current Timestamp :"+currentTimestamp);
}
}
/**
####### OUT PUT ###########
Current Timestamp :2010-12-20 12:13:24.164
*/
import java.util.Calendar;
public class JavaCurrentTimestamp {
/**
* @param args
*/
public static void main(String[] args) {
// create a java calendar instance
Calendar calendar = Calendar.getInstance();
// get a java.util.Date from the calendar instance.
// this date will represent the current instant, or "now".
java.util.Date now = calendar.getTime();
// a java current time (now) instance
java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(now.getTime());
System.out.println("Current Timestamp :"+currentTimestamp);
}
}
/**
####### OUT PUT ###########
Current Timestamp :2010-12-20 12:13:24.164
*/
Subscribe to:
Posts (Atom)