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?

  1. Declare a class related field in opposition to an example.
  2. Declaring a method that can be called on the opposing class
  3. Declaring a nested class as a static
  4. A stable class initiator Define
  5. ???
  6. (since Java 1.5):

    import Fixed my.package.MyClass *;


Comments

Popular posts from this blog

MySql variables and php -

php - Laravel - Overriding a resource route into a different route filter group -

url rewriting - How to implement the returnurl like SO in PHP? -