auto type variable data type in java code example Example: auto in java for ( Object var : object_array) System.out.println(var);