多选题 You have decided on the data type for a variable that will store the information about the on/off switch. Now you must determine a name for it. Which of the following names follows the Java naming conventions?
  • A. LIGHTSWITCHENABLED
  • B. LightSwitchEnabled
  • C. lightSwitchEnabled
  • D. x
【正确答案】 C
【答案解析】变量应该以小写字母开头,每个相继的单词大写。名字也应该描述变量的用途。A、B和D不正确。