Computer Science, asked by fffghhgf, 1 month ago

Write a statement in Java, to declare a constant MAX and store the value 100 in it.​

Answers

Answered by Kunal7727
0

Answer:

don't know what is the answer

Answered by simonsaikia9
0

Answer:

public class constant {

   private static final int MAX =100;

   public static void main(String[] args) {

       System.out.println(MAX);

   }

}

The syntax to declare a constant is as follows::

static final datatype identifier_name=value;

Similar questions