Primitive Types, Wrapper Classes, Variables and Expressions - ISC Class 11 Computer Science Notes, Diagrams and Solved Questions
The eight primitive types and their wrapper classes, classes as user-defined types, automatic coercion and casting, variables and final constants, arithmetic and logical expressions with precedence and associativity, and how assignment and reference variables work.
In this chapter
The eight primitive types, their sizes and ranges
Wrapper classes, parse methods, autoboxing and unboxing
How a class acts as a new, user-defined type
Automatic widening in mixed expressions and explicit casting, with a conversion explorer
Variables as named values and final named constants
Arithmetic, relational and logical operators, integer division and short-circuit evaluation
Precedence and associativity, step by step
Assignment (RHS first, then LHS) and the difference between primitive and reference variables