Why is java object oriented programming language?

Haiylu
2 min readJan 15, 2017

--

Unlike other programming language like FORTRAN, which focus mainly on commands to tell the computer what to do, object oriented programming language organize the data that are needed to tell the computer what to apply .Because of its implementation and functionality in data structure, we can conclude that java is an object-oriented programming language.

In object-oriented language like java has to use..

1- Objects

2- Classes

3-Various methods depending on the problem sets

Code Time: Use object oriented programming in java (it can be in any scenario)

public class EmployeeHk {

public static void main(String[] args) {

Employee e1 = new Employee();

e1.name = “Sam”;

e1.ssn = “555–12–345”;

e1.emailAddress = “Sam@company.com”;

Employee e2 = new Employee();

e2.name = “Tom”;

e2.ssn = “456–78–901”;

e2.yearOfBirth = 1999;

System.out.println(“Name: “ + e1.name);

System.out.println(“SSN: “ + e1.ssn);

System.out.println(“Email Address: “ + e1.emailAddress);

System.out.println(“Year Of Birth: “ + e1.yearOfBirth);

System.out.println(“Name: “ + e2.name);

System.out.println(“SSN: “ + e2.ssn);

System.out.println(“Email Address: “ + e2.emailAddress);

System.out.println(“Year Of Birth: “ + e2.yearOfBirth);

}

}

--

--