Java`s Reserved Words

when you are writing java code, you should know that java reserves certain words for itself as part of the java language. There aren`t too many of them, though. Here they are; abstract – It specifies that the class or method will be implemented later, in a subclass. boolean – A data type that can … Read more

Commenting in your java code

Java supports three types of comments, two of which are taken from C++. you can surround a comment of any length with the characters “/*’ and “*/”, like this: /* This application prints out “Linux” */ public class abc { public static void main(string[] args) { system.out.println(“Linux”); } } The java compiler will ignore all … Read more

System.out.println(“………..”)

The main method has one line of code in it: public class name { public static void main(String[] args) System.out.println(“linux”);} } This is the actual line of code that does all the work. In this case, we are using some of the code that the programmers at sun have already created to display the text … Read more

What is Struts?

Struts is a framework that provides the use of the Model-View-Controller architecture for designing large-scale applications. it is a project of the Apache software foundation with its official home page is at http://struts.apache.org/. The Struts Framework includes a set of custom tag libraries and their associated java classes, along with various utility classes. The most … Read more

What is JSF?

JSF The java Server Faces (JSF) is a new framework for building Web application by using Java. Java Server Faces consist of the following features: Easily configuration page navigation Standard extensible user interfaces widgets (like hyperlinks, buttons) for: User input validation Easy error handling java bean management Event-handling internationaliation support  

The Applet Class in Java

Each applet is an augmentation of the java.applet.applet class. The base Applet class gives techniques that a determined Applet class may call to get data and administrations from the program connection. These incorporate techniques that do the accompanying: Get parameters of the applet Get the system area of the HTML record that contains the applet … Read more

Java Applets

In order to run an applet, you must have a web browser. An applet can be a completely utilitarian Java application on the grounds that it has the whole Java API’s available to it. There are some essential contrasts between an applet and a standalone Java application, including the accompanying: A main() function is not … Read more

Packages in Java

Packages are utilized as a part of Java so as to avert naming clashes, to control access, to make seeking/placing and utilization of classes, interfaces, identifications and annotations less demanding, in addition to several others. A Package can be described as a collection of related types (classes, interfaces, counts and annotations) giving access security and … Read more

Declaring Interfaces in Java

In order to declare an interface, you must use the interface keyword. Here is a straightforward illustration that can be used for declaring an interface. The standard structure and order of statements that can be used for this purpose are as follows: import java.lang.*; public interface Interfacename { //Statements} Interfaces have the accompanying properties: An … Read more

Common Exceptions in Java

In Java, it is conceivable to characterize two categories of Exceptions and Errors. Programmatic exceptions: – These special cases are tossed unequivocally by the application or the API software engineers Examples: Illegalargumentexception, IllegalStateException. JVM Exceptions: – These are exemptions/mistakes that are solely or consistently thrown by the JVM. Some exceptions of this class are ArrayIndexOutOfBoundsException, … Read more