Using Final Variables (Or Constants) - Java Object Oriented Design

Java examples for Object Oriented Design:final

Description

Using Final Variables (Or Constants)

Demo Code

public class Main {
  final static int BALL_RADIUS = 6;
  public static void main(String[] args) {
    System.out.println(Main.BALL_RADIUS);
  }//from   ww w . j a  va  2s . com

}

Related Tutorials