preview

Java Programming And Object Oriented Programming

Decent Essays

Java programming is widely used programming language that has a wide verity of application, such as; Mobile application, Enterprise Application, Desktop applications, etc. Java program was created by Sun Microsystems in early 1990s. It was created to solve the problem of connecting many household machines together. Java is class based and object oriented programming language. Java programming is secure, fast and reliable. It’s free and created for the general purpose.
Object Oriented is refers to a computer programming that defines the data of data structure and the types of functions that can be applied to the data structure.
Classes: A class is specifically set of instructions that allow creating different objects, which define the …show more content…

The class identifier should start with capital letter. A class should start in the first column of the line followed by the rest of header information- an identifier in the simplest case. In Java class has two access levels:
In Java class has two access levels:
Public: In class objects are accessible in coding in any package.
Default: In class objects are accessible inside the package. Java keywords: The Java complier recognizes these keywords and treats them special (Fig-1):
Fig-1 (Online http://www.bing.com/images/search?q=java+keywords&FORM=HDRSC2)

Object: Object oriented is a software program that describes the data structure, data type but also the types of operations or functions that can be applied to the data structure. Like that data structure becomes an object, which includes data and functions. Object specifies the behavior that states each class. This program can create the relationship between one object and another, such as; object can inherit characteristic from another object. Object can be written and maintained independently Concepts of Object oriented programming:
Principles: Inheritance, abstraction, encapsulation and polymorphism are the basic principles of Java programming:
Abstraction: It’s one of the central principles of object oriented programming. Abstraction is a process of abstracting the common features of objects and procedures. Abstraction takes away or removes the characteristic from something in order to reduce the

Get Access