Category «Uncategorized»

Immutable Class in Java By Example

Immutable is a type of class that once created, its content can’t be change. To make  your class Immutable, you have to: Declare your Class as final. This is to prevent other class from extending. See Image#1 Properties must be declared as final. This is to prevent from setting their values after instantiation. See Image#2 …

Inheritance Example In Java

According to Oracle(R) docs, Inheritance. A class that is derived from another class is called a subclass (also a derived class, extended class, or child class). The class from which the subclass is derived is called a superclass (also a base class or a parent class). The simplest example of this is the Student is a Person. In this example the Student class simply copies …

Terms Needs to Know to Become a Programmer

If you are not a graduate of any computer related course like me, you came to the right page. Here, I will try to help you get started in programming. First, let’s make you get acquainted with some terms that are very basic in programming so that you will have less struggle in searching for …

Create to File+Write to File Using Java NIO

Java+Windows Creating Text File