2 5 5 Points Give a couple examples of Java programming conv

2.

5. (5 Points) Give a couple examples of Java programming conventions, list how the conventions support programming. Give 3 examples of Java Syntax rules.

Solution

Java naming conventions:

a).class name: should start with uppercase latter and be a noun

b).interface name: should start with uppercase letter and be an adjective

c).method name: should start with lowercase letter and be a verb

d).variable name: should start with lowercase letter

By using the above naming conventions we can build a simple java application.

Java syntax rules:

Object: Objects have states and behaviors.

Example: A dog has states - color, name and breed

Class: A class can be defined as a blueprint that describes the state that the object of its type supports.

Methods: A method is essentially a behavior that a class can contain many methods. It is in methods where the logics are written, data is manipulated and all the actions are executed.

2. 5. (5 Points) Give a couple examples of Java programming conventions, list how the conventions support programming. Give 3 examples of Java Syntax rules.Solu

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site