adplus-dvertising
frame-decoration

Question

Which method can be defined only once in a program?

a.

main method

b.

finalize method

c.

static method

d.

private method

Posted under Java Programming

Answer: (a).main method

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which method can be defined only once in a program?

Similar Questions

Discover Related MCQs

Q. Which keyword is used by the method to refer to the object that invoked it?

Q. Which of the following is a method having same name as that of its class?

Q. Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?

Q. Which function is used to perform some action when the object is to be destroyed?

Q. What is true about private constructor?

Q. What would be the behaviour if this() and super() used in a method?

Q. What is false about constructor?

Q. What is true about Class.getInstance()?

Q. What is true about constructor?

Q. Abstract class cannot have a constructor.

Q. What is true about protected constructor?

Q. What is not the use of “this” keyword in Java?

Q. What would be the behaviour if one parameterized constructor is explicitly defined?

Q. What would be behaviour if the constructor has a return type?

Q. Which of the following has the highest memory requirement?

Q. Where is a new object allocated memory?

Q. Which of the following is a garbage collection technique?

Q. What is -Xms and -Xmx while starting jvm?

Q. Which exception is thrown when java is out of memory?

Q. How to get prints of shared object memory maps or heap memory maps for a given process?