Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
8 views

jvm-notes_class-9

Jvm notes class 9

Uploaded by

asmita21c
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

jvm-notes_class-9

Jvm notes class 9

Uploaded by

asmita21c
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

COMPUTER APPLICATION

CLASS IX

QUESTIONS AND ANSWERS OF JAVA

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.

Problem 2. How is ordinary compilation different from java compilation?

Solution. In ordinary compilation the source code is converted to a machine code


which is depended upon the machine or the platform. This resultant machine
code is called native executable code.

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.

Problem 3.What do you understand by JVM?

The java virtual machine is an abstraction designed to be implemented on the top


of existing processors. It hide the underlying operating system from java
applications Programs written in java are compiled into java byte code, which is
then interpreted by a special java interpreter for a specific platform. Actually this
java interpreter is known as the Java Virtual Machine
(JVM)

Problem 4. Name two types of java programs.


Solution. There are two types of java programs, Internet applets and stand alone
applications.

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.

Problem 5. Define the term Byte Code.


Ans. Java bytecode is the result of the compilation of a Java program, an intermediate
representation
of that program which is machine independent. The Java bytecode gets processed by the Java
virtual machine (JVM) instead of the processor.

Problem 6. State the difference between Applet and Application.


Ans. The fundamental difference between the two Java programs is that an application
program is designed to run on a stand-alone machine whereas an applet is a web-version of an
application which is used to run a program on a web browser.

You might also like