 |
Fundamental Object-Oriented Concepts |
| |
 |
An interface can extend any number of interfaces; a class can implement any number of interfaces. However, a class cannot extend more than one class. |
|
 |
Fundamental Object-Oriented Concepts |
| |
 |
According to the JavaBean naming standards, if the property name is 'x' and the type is Type, the accessor(getter) method is in the form:
public Type getX()
and the mutator(setter) method is in the form:
public void setX(Type newValue)
However, a boolean property may also use the following convention for its accessor(getter) method.
public boolean isX()
|
|
 |
UML Representation of Object-Oriented Concepts |
| |
 |
In UML, abstract types and methods are represented in italics. In the case of interfaces, the additional requirement is that the word <> is added above the interface name.
For example, Vehicle is an interface that defines a method drive().
<<interface>>
Vehicle
drive() |
|
|
 |
UML Representation of Object-Oriented Concepts |
| |
 |
Associations between 2 classes are shown as solid lines between classes. The navigability of an association is expressed as an open arrow at the end of the association line. |
|
 |
Java Implementation of Object-Oriented Concepts |
| |
 |
The visibility rules for access modifiers are as follows:
- private - can only be accessed from inside the class.
- No modifier- the members have default access level, that is, they can be accessed only by other classes in the same package.
- protected - can only be accessed by classes in the same package or subclasses of this class.
- public - can be accessed by any other class.
|
|
 |
Java Implementation of Object-Oriented Concepts |
| |
 |
Polymorphism refers to "many forms". It allows you to use a supertype (a superclass or an interface) reference to refer to one of its subtypes. |
|
 |
Algorithm Design and Implementation |
| |
 |
The enhanced for loop is in the form:
for (Type Identifier: Expression) Statement
The expression must be either an array or a collection. It provides a simple way for iteration of the loop.
|
|
 |
Algorithm Design and Implementation |
| |
 |
The substring method returns a portion of the String on which it is invoked. It is of 2 forms as given below.
public String substring(int beginIndex);
- Returns all the characters from the specified beginIndex till the end of the String.
public String substring(int beginIndex, int endIndex);
- Returns all the characters from the specified beginIndex till endIndex - 1.
|
|
 |
Java Development Fundamentals |
| |
 |
The java.util package contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes such as a string tokenizer, a random-number generator, and a bit array. |
|
 |
Java Development Fundamentals |
| |
 |
The -d option of javac helps you to set the destination directory where the compiler must place the class files. If a class is specified in a package, javac puts the class file in a subdirectory reflecting the package name, creating directories as needed. However the main destination directory must exist and cannot be created. |
|
 |
Java Platforms and Integration Technologies |
| |
 |
J2ME (Java 2 Micro Edition) consists of 3 software layers - JVM, Configuration, and Profile. The configuration acts as an interface between the VM and the profile. A profile defines the set of APIs available for a particular family of devices. |
|
 |
Java Platforms and Integration Technologies |
| |
 |
Java Naming and Directory Interface (JNDI) provides a unified interface to Java applications for lookup and directory services. |
|
 |
Client Technologies |
| |
 |
Abstract Window Toolkit (AWT) components use native peer components, so they are considered to be heavy weight as compared to swing components which are pure Java components. |
|
 |
Client Technologies |
| |
 |
JavaScript can be used in web pages to provide form manipulations such as client side validations, event handling and some visual effects. |
|
 |
Server Technologies |
| |
 |
In the business tier, a message-driven bean (MDB) allows J2EE(Java 2 Enterprise Edition) applications to receive JMS (Java Messaging Service) messages asynchronously, that is, senders are independent of receivers. |
|
 |
Server Technologies |
| |
 |
Simple Object Access Protocol (SOAP) is a XML-based platform-neutral protocol to send structured messages. |
|