Basic 1
Basic 1
Programming Language
instructions
User Language Task
Types of Programming Language
• Machine level language is quite easy for a machine to understand but not
for humans.
• 0 is represent as-Low.
• 1 is represent as -High.
Assembly Level Language
• The language which is understandable by microprocessor is known as assembly level language.
Disadvantage:
1) Decision Making.
2) Looping Statement.
High Level Language
Abbreviated as Java Development Kit is a package which consists of java development tools like java
complier and JRE for execution.
➔ It have a development tools like javac, javadoc, java as well as JRE.
➔ Essential for a programmer to compile and execute java application .
JRE
Abbreviated as Java Runtime Environment. It is a Environment which consists of JVM and built
In classes which is required for the execution of java program.
● It have some components such has JVM, Class loader, Interpreter, just in time
compiler and as well as built in packagers.
JVM
• Abbreviated as Java Virtual Machine.
• It converts byte code instruction line by line into current System machine level language with help of an interpreter.
• It is called as virtual machine because it doesn't physically exist.
• JVM which drives all other components of JRE.
• It have some components such as
Class loader:
It loads the class file from secondary memory into primary (JRE).
Interpreter:
It is used to convert byte code instruction into native machine understandable language
Just in Time compiler:(JIT)
It is used to increase the runtime efficiency.
Platform dependent
Note:
● A Software built using c and c++ are platform dependent.
Win os 32 bit
c.sourcefile Class file
c Mac
FB compiler os
Win os
insta
FB Mac os
Window os Linux os
Developer 64 bit
Platform independent example
❖ Note:
❖ A Software using built in java platform independent.
Executable by
Java source byte code JRE Win
file os
Javacompile
JRE
r
Mac os
JRE
Linux
insta.class os
Developer insta
Winos insta.java
64bit
• Java compiler does not directly convert high level language into a machine understandable language,
instead it converts java instructions into intermediate language called as ByteCode.
• The file is known as the class file with extension .class.
• Once the class file is ready it can be executed in any machine which has JVM in it. This makes the java a
platform independent.
Processor
JAVAC Byte Code
JVM
Executeable class file
compiler
JRE
Source Code
JDK O/P
Source File, Class File, Byte code
Source File:
❖ Source file is generated by programmer or Developer.
❖ Every source file should have a name and also it should have an extension.java.
❖ It consists an instruction written in java language.
Class File:
❖ Class file is generated by java compiler.
❖ Every class file have an extension.class.
❖ Every class file will consist an intermediate language called byte code.
Byte code:
❖ Byte code is an intermediate language which is neither understandable by the programmer
nor by a machine.
❖ It is understand only in JRE.
Note
• Types of path
1. Absolute path : The path which starts from drive name is known as
Absolute path.
It is not dependent on working directory
Example: C//users//abc.txt
2. Relative path: The path which starts from directory/folder name is known
as relative path.
It is always dependent on the working directory.
Example: Users//abc.txt
Basic Commands
1. cd– Change Directory: used to change Directory.
2. md or mkdir– Used to create directory/folder.
Syntax: mkdir folder1 folder2
Or
md folder1 folder2
3. dir– used to list of all the files and directories present in the working directory.
4. cls—clears the screen.
5. javac– Used to compile a java source file. We should pass source name as input
to this as mentioned below:
javac filname.java
6. java—Used to execute java class file. We should pass class filename as an input
to this as mentioned below:
java filename
7. ../../../-- Used to move backward multiple folder.