Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

variable naming conventions in java using -'java,naming-conventions,oop'

variable naming conventions in java  using -'java,naming-conventions,oop'

In PHP, we (at least the good programmers) always start general variable names with a lower-case letter, but class variables/objects with an upper-case letter to distinguish them. In the same way we start general file names with a lower case letter, but files containing Classes with an upper case letter.


$string="a string";
$Cat=New Cat();

Are the conventions the same in java, i.e Objects starting with upper-case but the rest with lower case, or does everything start with lower case as I've read in other places?

asked Sep 7, 2015 by rajesh
0 votes

Related Hot Questions

Government Jobs Opening