2. 39. 13. Get time in milliseconds using Java Calendar
import java.util.Calendar;
public class Main {
public static void main(String[] args) {
Calendar now = Calendar.getInstance();
System.out.println("Current milliseconds since Jan 1, 1970 are :" + now.getTimeInMillis());