Java Data Types and Operations

Veröffentlicht am: 22 Juli 2023
auf dem Kanal: ke
42
4

Java identifiers,variables, Numerical data types, Character data type and numeric operators.
Kindly note 2+3=5 not 4
= is called an assignment operator not the mathematical equals i.e
type variableName = value;
type- is one of Java's types eg int
variableName- eg num1

The equal sign is used to assign values to the variable.
int x=7 simply means variable x has been assignment value 7

Make sure that you choose descriptive names with straightforward meanings for the variables, constants, classes, and methods in your program. Names are case-sensitive. Listed below are the conventions for naming variables, methods, and classes.

Use lowercase for variables and methods. If a name consists of several words, combine them into one, making the first word lowercase and capitalizing the first letter of each subsequent word: for example areaOfCircle.

Capitalize the first letter of each word in a class name; for example, the class names ComputeArea.

Capitalize every letter in numbers that do not change, PI.


Auf dieser Seite können Sie das Online-Video Java Data Types and Operations mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer ke 22 Juli 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 42 Mal angesehen und es wurde von 4 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!