+ 1

Wrong class name spelling

Java language is case sensitive, and on the last question in "CLASS ATTRIBUTES" section the class name of variable "obj1" is written in lower case "people" while it should read "People"

6th Nov 2016, 1:08 AM
Vassili Kurman
2 Answers
+ 1
I think you are right!
7th Dec 2016, 8:10 AM
Ahad
Ahad - avatar
0
The question is correct Vassili it is a CONVENTION, a good practice, to write class names with a capital first letter, but it's not a syntactic rule, so you can name it people or People or peoPLE if you want Your are right in the case sensitive part, so if your class name is peoPLE you have to do this : peoPLE variableName = new peoPLE() ;
18th Dec 2016, 7:12 AM
Dago VF
Dago VF - avatar