In JDK 1.1, no other new feature is likely to have more impact on Java
programmers than the less-publicized inner classes feature. It'll change the
way in which Java programs have been traditionally written. The primary goal
of this feature is to provide the ability to declare classes within classes.
To incorporate the new inner classes syntax and scope rules, a few
significant changes were made to the Java language specifications. However,
no changes were made to the Java Virtual Machine. This is because the new
compiler implements the inner classes syntax using Java 1.0, which has no
inner classes. As a result, binary compatibility is still maintained with
Java programs written in Java 1.0.
The inner classes syntax is somewhat complicated. This article will provide
an informal introduction to the syntax and discuss how inner classes can be
used. As a case study, t... (more)
JavaBeans has been at the center of many new paradigms and technologies that
have emerged since its inception. Among emerging technologies, Enterprise
JavaBeans has generated tremendous interest in the business computing
community. However, a common misconception is that an Enterprise JavaBean is
an extension of a "plain vanilla" JavaBean with enterprise functionality.
While both JavaBeans and Enterprise JavaBeans are software component models,
their purpose is different. A JavaBean is a general-purpose component model,
whereas EJB, as the name suggests, is a component model that i... (more)
As images come in different sizes and formats, image loading is often a
complex and time consuming process. Image loading usually consists of
fetching the image file, reading the header, decoding the compressed pixels'
values, and then delivering the pixels. Java currently supports two types of
images, JPEG and GIF. The loading mechanisms for these formats are already
built-in. If other formats are involved, users will have to write their own
loading programs.
Image loading may mean different things to different applications. Some
applications may display images directly without... (more)
JavaBeans, now in its third year, is proving to be a powerful component
model. Whether it's the Java e-commerce framework or the Java platform for
the enterprise, JavaBeans is at the heart of many new and exciting
technologies. The JavaBeans model provides a framework to build, customize,
run and deploy Java software components. While there are numerous books and
articles on JavaBeans, not many of them deal with the customization aspect of
JavaBeans.
An object that conforms to the JavaBeans specs is called a JavaBean or, more
generally, a bean, which at runtime is like any other ... (more)
Ever since it was announced in May of 1996, Java Beans has been a topic of
great interest among Java developers. The first generation Java technology
embodied several modern software engineering concepts such as
object-orientation, platform independence, multithreading, network awareness,
etc. However, it lacked a few important elements, including support for
visual assembly of software components, object persistence and distributed
computing. Java Beans is the next generation Java technology that not only
adds the functionality it lacked but also makes Java programs more portabl... (more)