Get premium membership and access questions with answers, video lessons as well as revision papers.

Which of the following variables are allowed in Java, and which have the correct style?Volume, Area, Length, 3 sides, Sidel, length, Mysalary, Your salary, Screensize

      

Which of the following variables are allowed in Java, and which have the correct style?
Volume
Area
Length
3sides
Sidel
length
Mysalary
Your salary
Screensize

  

Answers


Davis
Volume-allowed, correct style
Area-allowed but area preffered
Length-allowed but lower-case ‘l’ preffered
3sides-not allowed, starts with a digit
Sidel-allowed correct style
length-allowed even with incorrect spelling of length
Mysalary-allowed but mysalarypreffered
Your salary-not allowed, no spaces allowed in the middle of a name.
Screensize-allowed correct style

Githiari answered the question on January 26, 2018 at 12:23


Next: Write a program which draws a large ‘T’ shape on the screen.
Previous: Explain the problem with this fragment of code: Int a, b; a = b; b = 1;

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions