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.



0 Comments:

Post a Comment

Popular Posts

Categories

AI (27) Android (24) AngularJS (1) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (112) C (77) C# (12) C++ (82) Course (60) Coursera (176) coursewra (1) Cybersecurity (22) data management (11) Data Science (85) Data Strucures (6) Deep Learning (9) Django (6) Downloads (3) edx (2) Engineering (14) Excel (13) Factorial (1) Finance (5) flutter (1) FPL (17) Google (18) Hadoop (3) HTML&CSS (46) IBM (25) IoT (1) IS (25) Java (92) Leet Code (4) Machine Learning (43) Meta (18) MICHIGAN (4) microsoft (3) Pandas (3) PHP (20) Projects (29) Python (719) Python Coding Challenge (155) Questions (2) R (70) React (6) Scripting (1) security (3) Selenium Webdriver (2) Software (17) SQL (40) UX Research (1) web application (8)

Followers

Person climbing a staircase. Learn Data Science from Scratch: online program with 21 courses