declare class variable in java

Java
private int fee;
or
private int fee = 2;
Source

Also in Java: