Homework #14
Table of Contents
General Information
Homework contains topics:
- Sorting an ArrayList of Person with java collections.
- Difference between Final, Finally and Finalize.
Collections in Java.
The Collection in Java is a framework that provides an architecture to store and manipulate the group of objects. Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion.
Difference between Final, Finally and Finalize.
Final
final is a keyword that is used to apply restrictions on a class, method, or variable.
- The class with this keyword cannot be inherited.
- The method with this keyword cannot be overridden.
- The variable with this keyword cannot be changed.
Finally
In Java, finally is a block used to place important code that will be executed whether or not an exception is handled.
Finalize
finalize() is used to perform clean-up processing just before the object is collected by the garbage collector. In Java, the finalize method in a class is used for freeing up the heap’s memory, just like destructors in C++.
Technologies Used
Project Status
Project is: complete.