Write a statement in Java, to declare a constant MAX and store the value 100 in it.
Answers
Answered by
0
Answer:
don't know what is the answer
Answered by
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