Quantcast
Channel: S. Nageswara Rao, Corporate Trainer – Way2Java
Browsing all 505 articles
Browse latest View live

Java Made Clear: What is Status code in HTTP Servlets?

1. What is Status code in HTTP? 2. Why status codes? This gives introduction to status code. Here, I talk in my own style for a better understanding for a very beginner. Suppose, I develop a software...

View Article


Java Made Clear: Classification of Status Codes in HTTP

After knowing clearly in a simple way "what a status code is?" and "why it is needed?", let us dig further in the subject. A status code is a numeric value with 3 digits. W3C divided all the status...

View Article


Java Made Clear: List of Status codes – Commonly occurring

Before going through, it is advised to read What is Status code in HTTP Servlets? and Classification of Status Codes in HTTP. Following table gives you the list of status codes. Only commonly occurring...

View Article

Java Clear Concepts: 10 Advantages of Servlets over ASP

I. Advantages of Servlets over ASP are tabulated. Feature Servlet ASP Platform-independent Servelts are platform-independent being written in Java. Works on Windows, a Microsoft product, only. Java...

View Article

Java Made Clear: Java Mouse Click and Mouse Event

Whenever, a GUI component is interacted by the user, it generates an event. For example, if the user clicks over a button, the button generates an event known as ActionEvent. Similarly, when the user...

View Article


Java Made Simple: What is Thread in Java? Why threads required?

1. What is a Process? A program under execution is known as process. A program (or a process) contains number of statements (called instructions). 2. When an execution of a process can stop? While the...

View Article

How to create threads in Java by Extending Thread class?

After knowing what a thread is, it is the time for creating and using the thread. Java comes with two approaches for creation of thread. 1. By extending Thread class (of java.lang package) 2. By...

View Article

How to create threads by implementing Runnable interface?

Once you know thread basics, know how to create threads in Java. Java comes with two styles of creating threads. 1. Thread creation by extending Thread class 2. Thread creation by implementing Runnable...

View Article


How to create multiple threads as Heavyweight Process in Java?

We know earlier how to create single threads by extending Thread class and also by implementing Runnable interface. Now let us create multiple threads of different processes and execute them. Before...

View Article


Java Made Simple: Create Array of Threads with Example

After knowing how to create multiple threads (both lightweight and heavyweight), let us modify the code to suit for creation of multiple threads as an array. In the following code an array of 5 threads...

View Article

Java Button Example with ActionListener Event Handling

User interface (communication-point) with a running Java program can be in two ways – using keyboard input and the other with GUI. Java supports GUI environment through GUI components like button,...

View Article

What is RequestDispatcher in Servlets – Explain with Example?

Communication is very needed between Servlets and Container. Towards this goal Servlet API comes with three interfaces. Following table gives the list and their functionality. Interface Functionality...

View Article

Java Made Simple: Java Creating Checkboxes Example

1. What is Checkbox? Checkbox is one of the GUI components Java supports. 2. When Checkbox is preferred by the Programmer? Checkbox is used when the user has got only two options to choose in between...

View Article


What is Radio button and Radio button group in Java with Example?

1. What is Radio button? Infact, there is no radio button class in Java. Radio buttons are nothing but checkboxes only but grouped as one unit. 2. What the advantage of grouping checkboxes? Once...

View Article

Java Made Simple: What is Java Choice class with Example?

Java comes with many GUI components placed in java.awt package. One component is Choice (in other GUI technologies, it is known as combo box). 1. What is Choice component in Java? 2. When to use...

View Article


Java Creation MenuBar, Menus, Menu Items in AWT with Example

Menus are a number of pull-down combo boxes (In Java called as Choice) placed at single place for easy selection by the user. To create menus, the java.awt package comes with mainly four classes –...

View Article

What is 404 Not Found Error in Servlets? How to Fix it?

User clicks over a hyperlink, some Servlet is called, executed and the response is sent to the user. Sometimes, the mouse click on the hyperlink calls such an attribute of <ACTION> tag which does...

View Article


Java Made Simple: What is Vector in Java with Example?

Sometimes, a data structure is preferred rather than an array in that data structure is growable and accepts dissimilar elements. Being growable dynamically, Vector is preferred when the number of...

View Article

Extends Thread or Implements Runnable – Which to prefer?

There are two ways of creating threads – one by extending Thread class and the other by implementing Runnable interface. Now the discussion is which to prefer in normal situations. I put both for an...

View Article

Java Made Simple: What is transient variable in Java?

To know about transient, first you must understand Serialization because the roots of transient lies in Serialization or transient is used only with Serialization and in other places it is never used...

View Article
Browsing all 505 articles
Browse latest View live