In Line No 7, you get error because, its syntax error. Compiler doesnt know what that line mean.
Line No 5: says create a reference variable "names" which is of type String array, which can hold 6 references to String objects.
Line No 6: Its another way of initializing String array. Here you are also initializing the the elements of array, along with variable "name" of type String array.
And about second question, int, char are comes under primitive type. So you are not creating object of any class. Primitive types contain bit
pattern which helps to find out its value.