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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -