Skip to content

mypage-solutions/Lesson_14

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

GitHub code size in bytes GitHub top language GitHub code size in bytes GitHub last commit

Homework #14

Table of Contents

General Information

Homework contains topics:

  1. Sorting an ArrayList of Person with java collections.
  2. 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.

Contact

About

The Java collections framework provides a set of interfaces and classes to implement various data structures and algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages