In Topic(s) : Data Types Variables and Constants
Methods to rightly use variable names when their names clash between class/static types and local types.
Methods to rightly use variable names when their names clash between class/static types and local types.
Java class variables have default values. Let us experiment with that.
Mainly used kinds Local, Class and Instance Variables are discussed here.
Variable declaration and initialisation varieties are explained here.
Reference data type for class object reference and array reference.
The java boolean data type declaration and its features.
The java char data type and its possible values are explained here.
Different types of integer data types with its maximum and minimum value limits are explained with this code.
Double and float data type declaration its max value and sizing.
Use of boolean literals.
Use of string literals as chain of normal alphabets, unicode characters, octal characters, escape sequences etc.
Use of a special case of using null as a literal for nullifying a reference.
Use of character literals as direct character assignment, unicode assignment or octal assignment.
Use of decimal/fractional/real literals in its different size as float and double.
Use of integer literals in its different notation forms as decimal form, octal form, hexadecimal form and binary form.
Making Identifier name choices.
Demonstration of a program with presence of different types of tokens.
An introductory program to show object based procedure call capability of Java Program.
Understanding rules of widening type promotions from byte->short->int->long->float->double.
Creating formulas that contain powers and square root.
Swapping of value between two integer variables without using the third variable.
Swapping of value between two integer variables using the intermediate third variable.
Building of expressions can be done for different units using different divisors.
Demonstration of use of blocks in java.
Demonstration of different types of java statements.