Literal (computer programming)
Appearance
Object literal (appears to refer to) an expression of data that can be used to create an instance of an object in the declaration. For example, in Java
String[] animals = new String[] {"cat", "dog"};
is an object literal declaration, as opposed to the nol-literal declaration
String[] animals = new String[2]; animals[0] = "cat"; animals[1] = "dog";