Java Reference
In-Depth Information
Different mechanisms to pass parameters to methods and constructors exist. Java uses pass by value and pass by
constant value mechanisms to pass parameters of primitive data types. Pass by reference value and pass by constant
reference value are used to pass parameters of reference types.
You can define a class and its members final . If something is final it means its definition or value, whatever
it represents, cannot be modified. final variables are used to define constants in Java. Compile-time constants are
constants whose values are known when the program is compiled. Runtime constants are constants whose values are
not known until the program is run.
Varargs parameters are used to define parameters for methods and constructors where they can take variable
number of parameters.
Java allows you to write true polymorphic code using generics in which code is written in terms of formal type
parameters.
Search WWH ::




Custom Search