Page 39 - CA_Blue( J )_Class9
P. 39
2. What do you mean by Stand-alone applications?
Ans. A stand-alone application refers to those applications that execute locally on any device and require no external help to
be functional, not even any Internet connections.
3. What are the two steps of java compilation process?
Ans. The two steps are:
Step 1: The program code is compiled into byte code through an Operating System independent compiler.
Step 2: This byte code needs to be converted into machine code to execute it on individual device. This is done by Java
Virtual Machine.
4. Define Byte code.
Ans. When Java Source Code is compiled by Java Compiler (javac), the resultant code is called Java Bytecode which is further
converted by Java Virtual Machine to machine-dependent code.
5. Write any features of Java language.
Ans. Some features of Java languages are as follows:
a. Simple b. Multithreaded
c. Platform independent d. Object-Oriented
e. Robust
6. Write any three advantages of Java.
Ans. Advantages of Java are Machine Independent code, Multi-functional language and Economical to maintain.
7. Write steps to create a class in BlueJ.
Ans. To create a class, follow the given steps:
Step 1: Click on the Edit menu from the Menu bar.
Step 2: Select the New Class option from the drop-down list.
Step 3: Type a name for your class in the Class Name text box.
Step 4: Select the Class option under the Class Type section to define the type as class.
Step 5: Click on the OK button to create the class.
8. What is the role of java compiler?
Ans. Java Compiler converts the source code into an intermediate code called byte code.
D. Picture Study.
1. What is the name of the Source Code file?
a. cal.java b. cal.class
c. cal.txt d. None of these
2. The name of the compiler is ………………….
a. JVM b. cal.class
c. JAVAC d. cal.java
3. JVM is a/an ………………….
a. Compiler b. Interpreter
c. Byte Code d. Machine Code
4. Computer can only understand ………………….
a. Source Code b. Byte Code
c. Machine Code d. Assembly Code
Introduction to JAVA 37

