Java get Heap Size
In this section, we are going to illustrates you how to obtain the heap size. The heap is the area in the memory used for memory storage during the runtime of the program.
Java get year from date
In this section you will study how to retrieve the year from the date. You can see in the given example that we have called SimpleDateFormat class showing the format of year.