5 ways to use the static keyword in Java -
I was just an interview where one of the questions was "description of 5 ways to use stable keywords in Java Please do. " I could only think of 2 on the spot, and later I got 2 more What is the 5th?
- Declare a class related field in opposition to an example.
- Declaring a method that can be called on the opposing class
- Declaring a nested class as a static
- A stable class initiator Define
- ???
(since Java 1.5):
import Fixed my.package.MyClass *;
Comments
Post a Comment