ABSOLUTE JAVA UPDATED ACTUAL
QUESTIONS AND CORRECT ANSWERS
COMPLETE STUDY GUIDE FULL SOLUTION
●● A _____ still belongs to a class, and its definition is given inside the
class definition.
Answer: static method
●● When a static method is defined, the keyword ____ is placed in the
method header.
Answer: Static. ie: public static returnedType myMethod(parameters)
●● _____ are invoked using the class name in place of a calling object.
Answer: static method: ie: returnedValue =
MyClass.myMethod(arguments);
●● True of false: A static method can invoke another static method.
Answer: True
●● True or false: A static method cannot refer to an instance variable of
the class, and it cannot invoke a nonstatic method of the class.
Answer: True
, ●● A static method has no ______, so it cannot use an instance variable
or method that has an implicit or explicit ____ for a calling object.
Answer: this. this.
●● You can put a ____ in any class.
Answer: main.
●● True or false. A class contain both static and nonstatic(that is regular)
methods?
Answer: True.
●● True or false. You can invoke a nonstatic method within a static
method?
Answer: False. You cannot invoke a nonstatic method within a static
method[unless you create an object to serve as the calling object of the
nonstatic method]
●● True or false: You can invoke a static method within a nonstatic
method.
Answer: True.
●● True or false: You can reference an instance variable within a static
method?
QUESTIONS AND CORRECT ANSWERS
COMPLETE STUDY GUIDE FULL SOLUTION
●● A _____ still belongs to a class, and its definition is given inside the
class definition.
Answer: static method
●● When a static method is defined, the keyword ____ is placed in the
method header.
Answer: Static. ie: public static returnedType myMethod(parameters)
●● _____ are invoked using the class name in place of a calling object.
Answer: static method: ie: returnedValue =
MyClass.myMethod(arguments);
●● True of false: A static method can invoke another static method.
Answer: True
●● True or false: A static method cannot refer to an instance variable of
the class, and it cannot invoke a nonstatic method of the class.
Answer: True
, ●● A static method has no ______, so it cannot use an instance variable
or method that has an implicit or explicit ____ for a calling object.
Answer: this. this.
●● You can put a ____ in any class.
Answer: main.
●● True or false. A class contain both static and nonstatic(that is regular)
methods?
Answer: True.
●● True or false. You can invoke a nonstatic method within a static
method?
Answer: False. You cannot invoke a nonstatic method within a static
method[unless you create an object to serve as the calling object of the
nonstatic method]
●● True or false: You can invoke a static method within a nonstatic
method.
Answer: True.
●● True or false: You can reference an instance variable within a static
method?