0% found this document useful (0 votes)
145 views

Answer The Following Questions

The document discusses key concepts in object-oriented programming and Java, including: - James Gosling developed Java, initially called Oak. It was created by Sun Microsystems for consumer electronics but became popular for general programming due to platform independence. - Features of Java include being object-oriented, using both a compiler and interpreter, and being platform independent. - A compiler converts source code to machine code while an interpreter converts line by line. Bytecode is platform independent code generated by compiling Java source. - The Java Virtual Machine executes bytecode, making Java platform independent by abstracting away the physical processor.

Uploaded by

Gopi Selvaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views

Answer The Following Questions

The document discusses key concepts in object-oriented programming and Java, including: - James Gosling developed Java, initially called Oak. It was created by Sun Microsystems for consumer electronics but became popular for general programming due to platform independence. - Features of Java include being object-oriented, using both a compiler and interpreter, and being platform independent. - A compiler converts source code to machine code while an interpreter converts line by line. Bytecode is platform independent code generated by compiling Java source. - The Java Virtual Machine executes bytecode, making Java platform independent by abstracting away the physical processor.

Uploaded by

Gopi Selvaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

7/13/2020 Introduction to Object Oriented Programming Concepts | Happy Compiler

4. A single line comment is represented by the symbol // in Java programming.


5. BlueJ is a window based platform to operate Java program.

A NS W ER THE FO LLOW ING QU E STIO NS :

1. Who developed Java? What was it initially called?


James Gosling developed Java. Java was initially called Oak.
2. Give a brief historical development of Java.
Sun Microsystems initially developed this language to develop software for consumer
electronics. But its platform independence feature made it popular as a general purpose
programming language.
3. Mention at least four features of Java.
a) It is an object oriented programming language.
b) It uses both compiler and interpreter.
c) It is case-sensitive.
d) It is a platform independent programming language.
4. Define the following:
a) A compiler: Program that converts high-level language program into low-level language
program at once.
b) An interpreter: Program that converts high-level language program into low-level
language program line by line.
c) Bytecode: Intermediate code that is generated after a Java source code is compiled. It is
platform independent, and only needs JVM for execution.
5. What is Java Virtual Machine (JVM)?
JVM is the interpreter that is responsible for executing the bytecode. It acts as a virtual
processor for Java, making it platform independent because the program directly doesn’t
depend on the physical processor.
6. Name three packages of Java class library.
java.io, java.lang, java.util.
7. What are Java reserved words? Name any five.
Reserved words are the keywords that have a special meaning in a program. It cannot be
used as an identifier. Examples include class, public, static, void, return.
8. Distinguish between:
a) source code and object code: Source code is the program written in a high-level
language. Object code is the program that is in low-level language, generated after compiling
the source code.
b) compiler and interpreter: Compiler is a program that converts high-level language
program into low-level language program at once. Interpreter is a program that converts
high-level language program into low-level language program line by line.
c) JDK 1.3 and BlueJ: JDK 1.3 is the toolkit that includes the compiler, interpreter and other
libraries needed to compile and run Java programs. BlueJ is an IDE that helps us in writing,
compiling and executing Java programs all in one place.
9. A compiler is specific to a language. Give your comments.
A compiler converts high-level language program into low-level language program. This low-
level language program consists of machine language which is specific to a given platform. It
is machine dependent. This is why a compiler is specific to a language.

https://www.happycompiler.com/oop/ 3/11

You might also like