The type of data returned by a method need not be compatible with the return type specified by the method
A) TrueB) FalseExplanation: The type of data returned by a method must be compatible with the return type specified by the method. For example, if the return type of some method is boolean, you could not
The variable receiving the value returned by a method must also be compatible with the return type specified for the method.
A) TrueB) False
A) TrueB) False
Latest Answer: True ...
A) TrueB) FalseExplanation: A argument is a variable defined by a method that receives a value when the method is called.
Latest Answer: I agree with Neeraj's statement. ...
A) ArgumentsB) ClassesC) ConstructorsD) Parameters
Latest Answer: Yes objects can be created only using constructors if we do not provide one compiler will create a default cons for us thus allocating memory for objects we are going to create and the default values for instance variables are:for integers, float, double, ...
Sometimes a method will need to refer to the object that invoked it. To allow this, Java defines the_____ keyword
A) this B) thatC) theD) and
A) TrueB) False
Latest Answer: ya it's false...because...we cant call the static method of a class using a object...call the static method using class name it self only,,,,,then how can we use the this key word inside the static method....... ...
A) TrueB) False
Latest Answer: True, deallocation is called Garbage Collection ...
By using finalization, you can define specific actions that will occur when an object is just about to be reclaimed by the garbage collector.
A) TrueB) False
A) InitialisationB) RuntimeC) Garbage CollectionD) None of the above
Latest Answer: Ans is : Garbage Collection b'coz the finalize() method is called by the garbage collector when it determines no more references to the object exist. regars,Supriya Ahire ...
View page << Previous 1 2 3 4 [5] 6 7 Next >>

Go Top