News

A variable that contains a whole number, as in the previous examples, is called an “integer” or “int” for short. However, this is just one type of variable in Java.
See the Java 101 Java interfaces tutorial for a more in-depth introduction to using interfaces in your Java programs, including where and where not to use default, static, and private methods.