Академический Документы
Профессиональный Документы
Культура Документы
Java Beans.
this is an example how to confuse
people by keeping wrong names.
NJC == Pure Old Java Object.
java bean a java class which adhers to
the naming convnetions ie if variable
is i, setter has to b setI and getI
class.
5. sometimes there is a need to create
an object whose class name is known
at runtime.
6. the way we do it.
get the classname at runtime in a
string.
get the Class class object associated
with that class.
do a newinstance.
this is ok provided we are using an
interface. else it would not make
logical sense.
7. for RTTI we can also use getClass
function which returns you the Class
class object associated with the class
to whcih the object belongs.
Object o ="Hello"
boards.
2. ability to loop thru datastructures.
3. in case it is empty, it will
automatically it will not print, without
we telling it what to do.
4. concept of java bean is required to
understand this.