Variables and Constant November 27, 2020December 21, 2020wefru Java Programming quiz on Variables and Constant-2 1 Created on November 27, 2020 By wefru Variables and Constant TEST YOUR SKILLS BRODLY 1 / 10 Q.61 The ……………… and ……………….. classes are abstract classes that support reading and writing of byte streams. reader, writer inputstream, outputstream objectinputstream, objectoutputstream none 2 / 10 Q.62What is the error in the following code?class Test{abstract void display( );} No error Method display( ) should be declared as static Test class should be declared as abstract Test class should be declared as public 3 / 10 Q.63 A package is a collection of classes and interfaces classes interfaces Objects 4 / 10 Q.64 Which of the following methods belong to the string class? length( ) compare To equals All of them 5 / 10 Q.65 What will be the output of the following code?byte x=64, y;y= (byte) (x<<2);System.out.println(y); 0 10 12 11 6 / 10 Q.66 If m and n are int type variables, what will be the result of the expressionm%nwhen m=5 and n=2 ? 11 1 111 111111 7 / 10 Q.67 Which of the following control expressions are valid for an if statement? An integer expression A Boolean expression Either A or B Neither A nor B 8 / 10 Q.68 The concept of multiple inheritances is implemented in Java by extending two or more classes extending one class and implementing one or more interfaces implementing two or more interfaces both B and C 9 / 10 Q.69 Which of the following do not represent legal flow control statements? break; return; exit(); continue outer; 10 / 10 Q.70 Data input is an abstract class defined in java.io a class we can use to read primitive data types an interface that defines methods to open files. an interface that defines methods to read primitive data types. Your score isThe average score is 50% LinkedIn Facebook Twitter VKontakte 0% Restart quiz