Person: An example user defined class[1] [top] The first two could be represented by two Java String variables and the last one by a Java int. That’s three variables to represent one person. By defining a Java class, Person, we can create one variable to represent a Person . Syntax: public class Person { }