Which of the following statements are incorrect?

a) public members of class can be accessed by any code in the program b) private members of class can only be accessed by other members of the class c) private members of class can be inherited by a subclass, and become protected members in subclass d) protected members of a class can be inherited … Read more

Which of the following statements are incorrect?

a) String is a class b) Strings in java are mutable c) Every string is an object of class String d) Java defines a peer class of String, called StringBuffer, which allows string to be altered

Which of the following statements are incorrect?

a) Variables declared as final occupy memory b) final variable must be initialized at the time of declaration c) Arrays in java are implemented as an object d) All arrays contain an attribute-length which contains the number of elements stored in the array

Which of the following statements are incorrect?

a) static methods can call other static methods only b) static methods must only access static data c) static methods can not refer to this or super in any way d) when object of class is declared, each object contains its own copy of static variables

Which of the following statements are incorrect?

a) public members of class can be accessed by any code in the program b) private members of class can only be accessed by other members of the class c) private members of class can be inherited by a subclass, and become protected members in subclass d) protected members of a class can be inherited … Read more

 Which of the following statements are incorrect?

a) default constructor is called at the time of object declaration b) constructor can be parameterized c) finalize() method is called when a object goes out of scope and is no longer needed d) finalize() method must be declared protected