3230 Java Interface Quiz 02 Objects and Classes

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What is the output of the following code? class S { int x = 0; S()(x++;) public static void main(String args[]) { S s = new S(); System.out.println(s.x); } }

1

Which one is wrong?

Class and object are just different names for the same thing.

Which of the following class is available in the java.lang package?

Object

True or False, An object that is not referred by any reference variable, is known as anonymous object.

True

True or False, We can have any number of classes in a java source file.

True


संबंधित स्टडी सेट्स

Circumference and Area of a circle

View Set

Chapter 2: What is Construction Management?

View Set

Introduction to Sales Contract in Indiana

View Set

Honors English 2 Semester 1 Final study guide

View Set

There Are Three Types of Failure AOW W.8

View Set