Как объявить константу в Java

Мы всегда пишем:

public static final int A = 0;  

Вопрос:

Is static final the only way to declare a constant in a class? If I write public final int A = 0; instead, is A still a constant or just an instance field? What is an instance variable? What's the difference between an instance variable and an instance field?

Ответы на вопрос(3)

Ваш ответ на вопрос