Level of Languages
Level of Languages
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.
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.