InterviewSolution
Saved Bookmarks
| 1. |
When Will You Define A Method As Static? |
|
Answer» When a method NEEDS to be accessed EVEN before the creation of the OBJECT of the class then we should DECLARE the method as STATIC. When a method needs to be accessed even before the creation of the object of the class then we should declare the method as static. |
|