Edit This Code:
Result:
$javac MyClass.java
$java -Xmx128M -Xms16M MyClass
Current DateTime: 2018-12-29T11:17:54.819 date1: 2018-12-29 Month: DECEMBERday: 29seconds: 54 date2: 2018-12-10T11:17:54.819 date3: 2018-12-12 date4: 22:15 date5: 20:15:30
Try it Yourself - © javacodegeeks.net