Wrong class name spelling | Sololearn: Learn to code for FREE!


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"

11/6/2016 1:08:56 AM

Vassili Kurman

2 Answers

New Answer


I think you are right!


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() ;