0% found this document useful (0 votes)
6 views10 pages

Level of Languages

The document outlines the distinctions between low level and high level programming languages, emphasizing their roles in hardware interaction and software development. It explains the function of translators, specifically compilers and interpreters, in converting source code to object code. Additionally, it introduces Java programming, its editions, features, and provides a basic example of a Java program structure.

Uploaded by

shubhamsinghb11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views10 pages

Level of Languages

The document outlines the distinctions between low level and high level programming languages, emphasizing their roles in hardware interaction and software development. It explains the function of translators, specifically compilers and interpreters, in converting source code to object code. Additionally, it introduces Java programming, its editions, features, and provides a basic example of a Java program structure.

Uploaded by

shubhamsinghb11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Level of Languages:-

1. Low Level Languages


2. High Level Language

1. Low Level Languages:- Low level languages are the basic computer
instructions or better known as machine
codes. The main function of low level
languages is to interact with the hardware of
the computer. They help in operating, syncing and
managing all the hardware and system
components of the computer.
• High level Languages:-When we talk about high level
languages, these are programming languages. Some
prominent examples are PASCAL, FORTRAN, C++ etc.
• The important feature about such high level languages
is that they allow the programmer to write programs for
all types of computers and systems. Every instruction in
high level language is converted to machine language
for the computer to comprehend.
• Translators:-Translators are the program that converts sourse
code into object code. Generally there are two types of
translators, Compilor and interpreter.
Compilor:- A compiler takes the source code as a whole
and translates it into object code all in one go. Once
converted, the object code can be run unassisted at
any time.
Interpreter:- the interpreter translates the sourse
code into object code one instruction at a time
Byte code and Machine code
• Byte Code:- Byte code is executed by virtual machine then central
processing unit. It is less specific towards machine.

• Machine Code:-it is not executed by virtual machine, it is directly


executed by cpu. It is more specific towards machine.
• Javac command:- The javac command is used to compile
Java programs, it takes .java file as input and produces
bytecode. Following is the syntax of this command.

• Java command:- The java command is used to execute


the bytecode of java. It takes byte code as input and
runs it and produces the output.
Editions of java
There are four types of Java language based on
their editions:
1.Java Standard Edition (Java SE)
2.Java Enterprise Edition (Java EE)
3.Java Micro Edition (Java ME).
4.JavaFX
Features of java:-
• Portable
• Platform Independent
• Secured
• Object Oriented programming
• Robust
• Interpreted
• High performance
First program
class HelloWorld {
public static void main(String args[])
• {
• System.out.println("Hello, World");
• }
•}
• 1. Class definition:-
It is used to declare the new class.

Class Helloworld{
// statement
}
• 2. main method:- public static void main(String args[])
• Public: so that JVM can execute the method from anywhere.
• Static: the main method is to be call without the object. The modifiers
are public or static can be written in either order.
• Void: the main method doesnot return anything.
• Main(): name configured in the java. The main method must be inside
the class definition. The compiler execute the code always start from
the main function.
• String[]: the main method accepts the single argument.

You might also like