Which of these keywords is used to make a class?
#java_2
#java_2
Anonymous Quiz
78%
class
6%
struct
4%
int
12%
none of the mentioned
Which of the following is a valid declaration of an object of class Box?
#java_2
#java_2
Anonymous Quiz
10%
new Box obj;
17%
obj = new Box();
66%
Box obj = new Box();
6%
Box obj = new Box;
Which of these operators is used to allocate memory for an object?
#java_2
#java_2
Anonymous Quiz
7%
give
72%
new
16%
alloc
6%
malloc
Which of the following statements is correct?
#java_2
#java_2
Anonymous Quiz
36%
Public method can be accessed by calling object of the public class
21%
Public method can only be called by object of its class
8%
Public method is accessible only to subclasses of its parent class
35%
Public method is accessible to all other classes in the hierarchy
🎉1