Home / Expert Answers / Computer Science / 7-what-are-the-naming-conventions-for-class-names-method-names-constants-and-variables-which-pa742

(Solved): 7. What are the naming conventions for class names, method names, constants, and variables? Which ...



7. What are the naming conventions for class names, method names, constants, and
variables? Which of the following items can

7. What are the naming conventions for class names, method names, constants, and variables? Which of the following items can be a constant, a method, a variable, or a class according to the Java naming conventions? MAX_VALUE, Test, read, readDouble 8. If today is Tuesday, what will be the day in 100 days? Describe how can you calculate it. 9. Will overflow cause a runtime error? What is a round-off error? Can integer operations cause round-off errors? Can floating-point operations cause round-off errors? 10. Is it correct to write code like this? int sum = 0; sum += 4.5; 11. What is wrong in the following code? Consider variable 'score' is defined already. if (score >= 60.0) System.out.println("D"); else if (score >= 70.0) System.out.println("C"); else if (score >= 80.0) System.out.println("B"); else if (score >= 90.0) System.out.println("A"); else System.out.println("F");


We have an Answer from Expert

View Expert Answer

Expert Answer


7. Naming convention for class: For class first letter of every word has to be in capital and all other letter has to be in small. For example : Demo, DemoExample. Naming conven
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe