0% found this document useful (0 votes)
3 views2 pages

Class 8 Java Notes Ans

Uploaded by

aditisaha169
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)
3 views2 pages

Class 8 Java Notes Ans

Uploaded by

aditisaha169
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

Chapter JAVA

1. Fill in the blank


a. Java language was developed by ______________________________
b. ____________are the java programs available on the internet (java applets)
c. ___________converts java source code to byte code (compiler)
d. Java is a __________independent language (platform)
e. _______________is another name of java interpreter (JVM)
f. The initial name of java was _____________ (oak)
g. The high level language program is converted to machine level is known as
_____________(object code)
h. Reserved words in java are also called as ____________(keywords)
i. Windows based java platform is known as ______________ (BLUEJ)
j. If you want to express comment along with statement then ________________
comment is used (documenting)
k. Java is a ________oriented programming language (object)
l. The java programs are both ____________ and ________________(compiled and
interpreted)
m. Java can access data from local machine as well as from ____________(internet)
n. Byte code is an intermediate binary form of the java ______________(source code)
o. Java ____________ are not to be used as variable name (keyword)
p. The term used to correct the error in a program is __________________(compilation)
q. Smallest individual unit in java program is known as_________(token)
r. __________ are also called variable in java programming (identifiers)
s. A ___________________is enclosed in single quotes in java (character)

t. Unary plus and unary minus work on a single operand (T/F) (TRUE)
u. OOP stands for __________________
v. Sun Microsystems was taken over by _________________ corporation in
____________ (oracle / 2010)
w. Java is a ___________level programming language (high)
x. Now, current owner of java is _________________ (Oracle)
y. JRE stands for _____________________
z. Java was first released by __________________company in ___________year
(sunmicrosystem /1995)
aa. IDE stands for ____________
bb. __________is the best IDE for beginners (BLUEJ)
cc. To run a java program click on the _____________button (compiler)
dd. Operator and operands together form an ______________(expression)
ee. C or C++ compiler translate the source code into _____________(machine code) but
JAVA translate the source code into intermediate code known as _______________
(byte code)
ff. In Object, which have 2 section _________________(data) and
_________________(function)
gg. The extension name of JAVA is _____________ and class is __________________
(java / class)
hh. every java statement end with _____________ sign (;)
ii. API stands for _______________________(Application Programming Interface)

1
2. Why java is popular? (because it is platform independent)
3. What is initialization?
The method of assigning value and defining the data type at the same time is called
initialization
Ex – int a=10;

4. Data hiding – private methods only be invoked within the class in which they are declared,
They are not visible to other classes is called data hiding
5. Some features of OOP are – classes, data hiding, inheritance, polymorphism, encapsulation
and abstraction
6. Give some rules for variable declaration in java?
7. Give some example of OOP?
8. Give some examples of IDE?
9. JVM (Java Virtual Machine) is needed when translates the byte code into machine code (JVM
is an interpreter)
10. Feature of java
a. It is both interpreted and compiled
b. It is portable and platform Neutral
c. It is purely OOP
d. It is Dynamic
11. Note -
a. In a java program we can defined more than one main()
b. Compilation means to convert source code to object code
c. Programmer’s language is called source code and the program that the computer can
understand is called object code
12. Operators in java
a. Operators are used to performing operation on constants and variable, the variable
and constants are called operators
b. Unary operators that require only one operand are called unary operator ( unary plus (
+ 1) unary minus ( -1 ))
c. Binary operators that require two operand are called unary operator
13. Operator are divided into 4 category
a. Arithmetic operator
b. Relational operator
c. Logical operator
d. Increment / decrement operator
14. Java Tokens : Every programming language consists of basic elements or building blocks called
tokens
15. Java program include the following Tokens
a) variables or identifiers
b) keywords or Reserve words
c) constants or Literals
d) operators
16. Data Type : While declaring a variable, it is required to specify the type of values that variable
will hold
Ex :int , float, double, long etc
17. Keywords : Keywords are the Special word, which have some special meaning or purpose and
cannot be used as identifiers
Ex :int, class, float, void, public, static etc
2

You might also like