A variable in Java is declared using the following syntax: = ; For example: int number = 10; String name = “John”; Post navigation What is the difference between an interface and an abstract class? What is the difference between a static and a non-static variable?