Java Programming Tutorials

Java Programming Tutorials And Articles
  Title / Author Replies
Views Reverse Sort Order
Introduction In the last article on servlet, we noted that HTTP is the protocol most-commonly used to communicate with web applications. Unfortunately, HTTP offers no mechanism for data to be retained between requests; in other words it can't track the activities of a user across requests. ...
1
7,326
Introduction The instances of the String class represent a string that cannot be modified. If we do want to create modifiable strings because we are going to do lots of string manipulation, we should use the java.lang.StringBuffer and java.lang.StringBuilder classes.If we choose to do a lot of...
2
7,093
The String class is used to manipulate character strings that cannot be changed. In simple terms, objects of type String are read only and immutable. The StringBuffer class is used to represent characters that can be modified. The significant performance difference between these two classes is that...
6
6,780
Introduction Handling character strings in Java is supported through two final classes: String and StringBuffer. The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic...
0
6,703
In the previous article Basic Graphics In Java With Examples I explained the methods of graphics class available for drawing various types of figures. In this article I will carry forward the graphics class with the methods it provides to work with those figures, methods available for working with...
1
6,544
Here, these two codes are used to shows the difference between normal MultiThreading and Synchronized Multithreading. Notice, see the difference in the starting and finishing of all the threads in both the code and try to find why every time when you run the program code, random thread starts...
3
6,497
The Decimal Format class is not very well documented, so I will try and exmplain it with an example. Firstly, you need to import the DecimalFormat class: import java.text.DecimalFormat; Create an instance the format object. This object can be used with doubles, as it uses a decimal. It uses a...
1
6,474
JDBC Basics - Part I DSN In the first article we have discussed about Type 1 JDBC driver. In this article we will discuss about the practical configurations essential for the successful execution of the JDBC program. According to the previous article "sun.jdbc.odbc.JdbcOdbcDriver" is the...
3
6,415
Google pagination used to find initial and final index for the search done using google3 for website application. GoogleAppSearch.java import net.sf.gsaapi.GSAClient; import net.sf.gsaapi.GSAQuery; import net.sf.gsaapi.GSAResponse; import net.sf.gsaapi.GSAQuery.GSAQueryTerm; import...
7
6,411
What is an Abstract Class? A class defined in such a way such that it defines the basic structure of an object but does not provide any implementation details about at least one of its method. Any method in an abstract class which is devoid of any implementation details is called abstract...
3
6,285
The classical input/output (I/O) library in Java contains classes that support I/O handling of streams with compressed data. You can easily compress and decompress any text or binary data to or from any I/O stream using either a file or any other stream (e.g., a servlet output stream). In this...
0
5,663
In this article I will discuss about window and some advanced components which can be added to our window such as Menu Bars and Menus. Window Fundamentals The AWT defines windows according to a class hierarchy that adds functionality and specificity with each level. The two most common...
2
5,510
One of the prime features of object oriented programming is data encapsulation.This feature enables data to have restricted access.There are currently four different access specifiers in JAVA. Namely, Public Protected Default Private Public:- All the data members and member functions...
3
5,225
Introduction As we already know the primitive data type char represents a character. A chain of characters is called a string. The capability to handle strings is an important feature of any programming language. In Java, each character in a string is a 16-bit Unicode character.Because Unicode...
2
5,221
What is an EJB? An Enterprise JavaBean (EJB) is a reusable, portable J2EE component. EJBs consist of methods that encapsulate business logic. For example, an EJB may have business logic that contains a method to update customer data in a database. A variety of remote and local clients can invoke...
1
4,907
So far Java Event Handling (Part-1) Java Event Handling (Part-2) In this article I will discuss about the events generated by entering input through keyboard and when characters are entered in text fields and text areas. The KeyEvent Class A KeyEvent is generated when keyboard input...
1
4,702
Introduction JavaServer Faces solves many of the historical problems of Java Web development by providing a clean implementation of the Model-View-Controller design pattern while providing a productive, component-centric development without sacrificing development power and flexibility....
0
4,617
JNode, a "Java New OS Design Effort" is an open source all java operating system. It is a modern OS with support for modern hardware devices intended to be simple to use, install & maintain on personal devices such as desktops, tablet pcs and handhelds. JNode has started out many years ago as...
7
4,589
Parts so far Java Event Handling (Part-1) In the previous article I presented the basic concepts and ideas about Event handling in java. In this article I will discuss about mouse event handling. Firstly let me familiarize you with the various mouse events. MouseEvent Class There are...
1
4,516
What Is GlassFish? Depending on how you look at it, GlassFish is any of the following: A community. The GlassFish community currently includes over 1100 members participating in the GlassFish project, with the objective of developing an open source application server that implements Java EE...
0
4,143