Introduction to Java

0 586

 Introduction to Java

this tutorial will cover the topic like Introduction to Java Object-oriented Programming Paradigm Difference between a program and software Features Class Abstraction Encapsulation Inheritance Polymorphism Java: Object-oriented Programming Language Secure Architecture Neutral and Portable Multithreaded Distributed Dynamic 

The computer used to solve problems quickly and accurately.to solve problems quickly and accurately computer provide us different kind software’s by using these software’s we can solve our problems quickly.

The software is set of sequence of instructions. These sequence of instructions provide instructions to computer handle all these critical works in just a few mints which a user needs hours to perform.

Such type programs can be write in high-level languages Such as in Java, C#, and C++.

Difference between a program and software

A program is a set of instructions and a software is made of different programs.

Java

Java is a most popular secure and robust OOPS programming language that allow a developer to create the wide range of applications that can be run on various hardware and OS.

Introduction to Java Object-oriented Programming Paradigm

Earlier languages such as C, Pascal, Cobol, and so forth followed structured programming paradigm. In structured programming application development was decomposed into a hierarchy of subprograms. Each subprogram was defined to perform some task in case of functions, or modules.

In structured programming data was giving less importance.so focus was on time and memory occupancy rather than data shared globally between the procedures this often increased software crisis such as maintenance cost of complex problems.

The object-oriented programming paradigm provides the efficient way to develop complex software application with reduced cost and high maintenance.

In object-oriented programming paradigm, all focus is on data rather than only focusing on functionalities.

Features of Object-oriented Programming are followed.

Reliable software Development at reduced cost

Reduced maintenance cost

Development of reusable software components

Software development Completion within the specified time interval.

The object-oriented programming paradigm development process divided into three distinct activities.

Object-oriented Analysis (OOA)

Object-oriented Design (OOD)

Object-oriented Programming (OOP)

Object-oriented Analysis (OOA)

OOA process determines the functionality of the system.

Object-oriented Design (OOD)

OOD is a process of planning in which object interact with each other to solve software problems.

Object-oriented Programming (OOP)

OOP deals with the actual implementation of the application.

OPPS language based on certain principles

Object

Represents real world entity which has certain features and behaviors.

Class

To create an object class is used as a template.

Abstraction

Abstraction is a technique in OPPS languages that focus only on the essential features of an entity.

Encapsulation

Encapsulation mechanism combines data into a single unit called class. Encapsulation also called data hiding where a user can’t access data directly from any class.

Inheritance

Inheritance provides a mechanism for developers to extend or reuse code from one class to into other derived class.

Polymorphism

Is the ability of an object to respond to the same message in different ways.

Java: Object-oriented Programming Language

Java is a high-level OPPS language which is used to develop cross-platform application. Most of the java syntax is drives form of C++.

The main objective of this language is to create applications which can be run on the various cross platform such as computer mobile phones. If we see around us billions of devices running on java such as printers mobiles phones ATM’s etc.

It is characterized by following features

Simple

Java language derives its syntax from C and C++ languages its helps programmers to adopt the java programming quickly without any extra skills.

Java doesn’t support multiple inheritances and also dropped pointer and operators overloading.

Object-oriented

Java is a pure OPPS language which is based on object Object model is defined by means of classes and objects that are used to address the solutions closer to the real-world problem domains.

Robust

In c and c++ dynamic memory allocation/deallocation done by a user with through pointers. For example, if programmer released memory and was its being used with other program and forget to deallocate then it resulted in memory related errors.

Java provides automatic memory management system and better exception handling mechanism which make it’s robust.

Secure

Java is secure programming language its applications are designed to distribute environments. For example whenever a user downloading a file from net it is always danger that might be this program is infected with virus but on other hand java provide applets, applets are executed online within a browser these applets are placed in sandbox The sandbox model is based on a principle that ensures it should not have direct access to files or resources available on the local system.

Architecture Neutral and Portable

Portability was major problems for programmers to run same codes on different platforms with different OS and processor .java solved this problem by converting the application into architecture neutral bytecode during compilation. bytecode can be executed on any platform on which the JVM is installed.

Multithreaded

Java support Multithreading.a Multithreaded application can perform multiple tasks simultaneously.The thread runs independently without disturbing the execution of other threads.

Distributed – Java is designed to support distributed programming in which resources can be accessed across the network. It provides Application Programming Interfaces (APIs) to handle Transmission Control Protocol/Internet Protocol (TCP) and HyperText Transfer Protocol (HTTP) on the network. It also supports Remote Method Invocation (RMI) API that allows invocation of Java objects remotely from other JVM running in the different environment across the network.

Dynamic – Java application is a collection of classes. During execution, the classes are stored in a separate file and are loaded as and when required by the Java interpreter. This means that at runtime an application can dynamically decide which classes it requires and accordingly load them to expand its functionality. This gives a new perspective to Java for designing and developing applications.

 

 

Comments

comments

Leave A Reply

Your email address will not be published.