Fundamental Object-Oriented Concepts
In Java, a narrowing conversion is also known as an explicit type conversion or casting.
A byte can represent values between -128 to 127.
An array, in Java, is an ordered collection of primitives, object references, or other arrays. All the elements of an array must be of the same type, except in case of polymorphism.
Array elements are initialized to default values, wherever they are created.
The increment operator can be used in either of the two forms given below:
- Prefix form: In the prefix form, it appears before the operand. For example, ++a;
- Postfix form: In the postfix form, it appears after the operand. For example, a ++;
Numeric promotions are used to convert the operands in a numeric expression to a common type before an operation is performed between the operands.
In Java, there are two kinds of numeric promotions as follows:
- Unary numeric promotion
- Binary numeric promotion
Pass SCJA Certification Java 1.2 in a first attempt:
Continue reading “SCJA CX310-019 Short Notes: Exam Passing Tips”