Learn AP Comp Sci

☰

Problem of the Day

Tuesday, October 13, 2026


Problem:

In Java, identifiers are used to refer to classes, methods, variables, and constants. By custom, identifiers are created according to which strategy?

classesmethodsvariablesconstants
a.begin with uppercase letterbegin with uppercase letterbegin with uppercase letterall uppercase letters
b.begin with uppercase letterbegin with uppercase letterbegin with lowercase letterall uppercase letters
c.begin with uppercase letterbegin with lowercase letterbegin with lowercase letterbegin with lowercase letter
d.begin with uppercase letterbegin with lowercase letterbegin with lowercase letterall uppercase letters

Show solution:

The correct answer is d. Naming conventions have been established over time, and make code more understandable for other people who are reading your work and trying to understand it.