Fundamental Object-Oriented Concepts
- Prefix form: In the prefix form, it appears before the operand. For example, ++a;
- Postfix form: In the postfix form, it appears after the operand. For example, a ++;
- Unary numeric promotion
- Binary numeric promotion
- If a variable declaration is preceded by the final keyword, its value cannot be changed in the program.
- If in a method declaration, the method name is preceded by the final keyword, that method cannot be overridden.
- If in a class declaration, the class name is preceded by the final keyword, that class cannot be inherited.
UML Representation of Object-Oriented Concepts
protected by #.
Java Implementation of Object-Oriented Concepts
- First of all, a variable of the class is declared. This variable simply refers to an object.
- In the next step, the actual physical copy of the object is created and assigned to that variable.
Pass SCJA Certification Java 1.2 in a first attempt:
Algorithm Design and Implementation
{
//body of the loop
}
All the three components, i.e., initialization, condition, and iteration are optional.
If the argument evaluates to false, the statements in the else-block are executed. If the number of statements after the if clause is more than one, it is necessary to put them inside the curly braces. However, in case of a single statement, the curly braces are optional.
if(boolean_expression)
{statements;}
else
{statements;}
- StringBuffer()
- StringBuffer(int size)
- StringBuffer(String str)
- substring(int startIndex)
- substring(int startIndex, int endIndex)
Java Development Fundamentals
Java Platforms and Integration Technologies
- Publish-and-subscribe
- Point-to-point
Client Technologies
- It lacks support for graphical user interface, i.e., it cannot be used to draw images and other graphical components.
- It is less secure. It runs on the user’s Web browser. The HTML source code of a Web page can be viewed in a Web browser.
Server Technologies