Java Classes Question:

Download Job Interview Questions and Answers PDF

What are static methods?

Java Classes Interview Question
Java Classes Interview Question

Answer:

Static methods dont need class objects to call them where as nonstatic methods needs class objects to call them

Download Java Classes Interview Questions And Answers PDF

Previous QuestionNext Question
A parameter is a variable defined by a method that receives a value when the method is called.

A) True
B) False
Explain can a abstract class have a constructor? When would the constructor in the abstract class be called?