Wednesday, 27 May 2020

Wondering how a Java Program Executes???

We’ll see how it executes but first let’s get to know how a C program executes. And then we'll compare it with how java program executes. From the above diagram, we can see that C executes faster than Java as it has fewer steps to execute. In java, we have an extra step that is Compiler converts the source file to byte code (This is where platform independency is achieved). Then JVM converts byte code to machine language and is fed to the processor to get output.

Applications

Applications are of two types:
Embedded applications
Portable applications

Embedded applications:

An embedded application is software that is placed permanently inside some kind of device to perform a very specific set of functions. The program instructions for embedded systems are called firmware, or embedded software, and are stored in read-only memory, or flash memory chips. For embedded applications Speed is a very important factor.

Portable applications:

A portable application(portable app), sometimes also called standalone, is a program designed to read and write its configuration settings into an accessible folder in the computer, usually in the folder where the portable application can be found. This makes it easier to transfer the program with the user's preferences and data between different computers. A program that doesn't have any configuration options can also be a portable application. Portable applications can be stored on any data storage device, or in other words, these applications are platform-independent.

Object Orientation

Before going ahead with the object orientation. Let’s get to know what is orientation? Orientation ➤Perspective ➤Way of looking at something
 Let us take an example of a glass of water and try to understand in a better way: 
A chemist will see the glass of water as liquid + gas, an optimistic person will look at it as half-full glass, a pessimistic person will see it as a half-empty glass, a realist will see itas glass of water, a drunkard will see it as maybe..alcohol??? but a developer will view it as an object. 

Object Orientation is the way of looking at this world as a collection of objects. In this world, no object is completely useless. All objects are in constant interaction with each other. No object exists in isolation. Every object belongs to a type. Where type does not exist but the objects of the type exist in reality. Every object has two parts:
1.“has” part refers to the properties/state of an object. To take care of has a part in Java we make use of Datatypes.
2.“does” part refers to the behavior of an object. To take care of does part in java we use of methods or functions.



1 comment:

Popular Posts

Categories

Android (21) AngularJS (1) Assembly Language (2) Books (10) C (75) C# (4) C++ (81) Course (1) Data Strucures (4) Downloads (1) Engineering (13) FPL (17) Hadoop (1) HTML&CSS (38) IS (25) Java (87) Leet Code (4) PHP (20) Projects (1) Python (218) R (69) Selenium Webdriver (2) Software (14) SQL (27)