Professional Documents
Culture Documents
CO - IF - 22412 - CO1: Date: 03 February 2021 Learning at Your Doorstep
CO - IF - 22412 - CO1: Date: 03 February 2021 Learning at Your Doorstep
Written by
Yogita Jore
Head, Department of Information Technology (NBA Accredited),
Vidyalankar Polytechnic, Mumbai
Unit Outcome 1:
Write a program to create classes and
objects for the given problem.
Learning Outcome 1b:
Students should understand the
features of java.
What we will learn today –Features of Java
3. Object Oriented
5. is Distributed
8. High Performance
9. Dynamic
► Features of java
Java is a two stage system: In a first stage java compiler translates source code into byte code
instructions.
Byte codes are not machine instructions.
In a second stage, Java interpreter generates machine code that can be directly executed by the
machine.
The two steps of compilation and interpretation allow for extensive code checking and improved
security.
The feature “Write-once-run-anywhere” (known as the Platform independent) states that programs
written on one platform can run on any platform provided the platform must have the JVM.
Unlike other programming languages such as C, C++ etc. which are compiled into platform specific
machines.
On compilation Java program is compiled into bytecode.
This bytecode is platform independent and can be run on any machine, plus this bytecode format also
provide security.
Any machine with Java Runtime Environment can run Java Programs.
Multithreading means a single program having different threads executing independently at the same
time. Java supports multithreaded programs.
Multiple threads execute instructions according to the program code in a process or a program.
Multithreading works the similar way as multiple processes run on one computer.
By connecting to the Internet, a user immediately has access to thousands of programs and other
computers.
During the execution of a program, Java can dynamically load classes that it requires either from the
local hard drive, from another computer on the local area network or from a computer somewhere on
the Internet.
Compiler generates bytecodes, which have nothing to do with a particular computer architecture, hence
a Java program is easy to interpret on any machine.
The main reason why Java is popular on the Internet is that Java offers applets.
Applets are tiny programs which run inside the browser.
Before the introduction of applets, the web pages were mostly static.
After the use of this application, they have become dynamic, making browsing richer.
Applets are very safe.
They cannot write to the local hard disk.
Hence, there is no threat of viruses while surfing the Internet.
This has made applets (and thereby Java) highly popular on the Internet.
They also support graphical user interface (GUI).
Q3: In a first stage, java compiler translates ______ into byte code instructions.
Ans: Source Code