jvm-notes_class-9
jvm-notes_class-9
CLASS IX
Problem 1
How can you say that java is both a programing language and platform?
Solution. Like any other programming language, we can use java to write or
create various types of computer applications. The word platform generally is
used to refer to so9me combination to hardware and system software, the java
platform is a new software platform designed to deliver and run highly
interactive, dynamic and secure applications on networked computer system.
Contrary to ordinary compilers the java compiler does not produce native
executable code for a particular machine, instead it produce a special format
called byte code. The java byte code looks a lot like machine language, but unlike
machine language jave byte code is exactly the same on every platform.
i. Internet Applets are small program that are embedded in web pages
and are run on the viewer’s machine in a secured manner (which means
limited access to system re-sources i.e., the hard disk) by java capable
browsers.
Applets are designed to deliver to internet Web browser and that is way an applet
has built-in graphical window. But java applets have some security restrictions
(e.g., it cannot write to a local file).
ii. The second types of java program, stand alone applications, is generally
a software application that does not require low level operating system
or hardware access. Every stand alone application of java begins
executing with a main method.