Java Classes Object and methods November 27, 2020December 21, 2020wefru Java Classes Object and methods Quiz 1 Created on November 27, 2020 By wefru Classes , Object and Methods TEST YOUR SKILLS 1 / 10 Which of these class is superclass of every class in Java? ArrayList class Abstract class Object class String class 2 / 10 Object is ____________class? String class Instance class Array class None of the above 3 / 10 What will be the output of following program?class Rectangle{in length, width;Rectangle(int x, int y);{length = x;width = y;}int rectArea(){return (length * width);}class rectangleArea{public static void main (String args[]){Rectangle react1= new Rectangle(15, 10);int areal = react1 rectArea();System.out.printLn("Area = "+ area1);}} Area1=100 Area1=150 Area1=200 Area1=155 4 / 10 A Default constructor has no argument One Argument no return type two argument 5 / 10 A subclass is also called as inner class derived class nested class hidden class 6 / 10 Which of these constructor is used to create empty String object? String(0) String() String(void) None of the mentioned 7 / 10 The keyword used to create a new object in Java is __________________. class Java new create 8 / 10 Choose the correct statement about java main method. The main method is not a required method The main method must be declared public static void you can define program flow using the main method. The Java virtual machine calls the main methods directly All of the above 9 / 10 Creating an object from a class is also called______________. Initializating Instantiating Interfacing None of the above 10 / 10 A java class can contain_______. Variables Methods, Constructors Inner Classes All of the above Your score isThe average score is 90% LinkedIn Facebook Twitter VKontakte 0% Restart quiz