Variables and Constant

Spread the love

Java Programming quiz on Variables and Constant-2

Created on By wefru

Variables and Constant


1 / 10

Q.61 The ……………… and ……………….. classes are abstract classes that support reading and writing of byte streams.

2 / 10


What is the error in the following code?
class Test
abstract void display( );


3 / 10

Q.63 A package is a collection of

4 / 10

Q.64 Which of the following methods belong to the string class?

5 / 10

Q.65 What will be the output of the following code?
byte x=64, y;
y= (byte) (x<<2);

6 / 10

Q.66 If m and n are int type variables, what will be the result of the expression
when m=5 and n=2 ?

7 / 10

Q.67 Which of the following control expressions are valid for an if statement?

8 / 10

Q.68 The concept of multiple inheritances is implemented in Java by

9 / 10

Q.69 Which of the following do not represent legal flow control statements?

10 / 10

Q.70  Data input is

Your score is

The average score is 50%


Leave a Reply

Your email address will not be published.