Answers for "show various use of static keyword in java"

1

static keyword in java

// example on static method in java.
public class StaticMethodExample
{
   static void print()
   {
      System.out.println("in static method.");
   }
   public static void main(String[] args)
   {
      StaticMethodExample.print();
   }
}
Posted by: Guest on November-21-2020

Code answers related to "show various use of static keyword in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language