Java Programming Tutorials

Java Programming Tutorials And Articles
  Title / Author Replies Reverse Sort Order
Views
People generally have doubt that when we use Hibernate we simply use configuration to create SessionFactory(). Using that we create session for JDBC connection. But all these SessionFactory and Session class are interfaces. But there is no class available with this name which implements methods of...
1
8,112
LDAP - The Lightweight Directory Access Protocol This directory access protocol which can either act as a gateway to other service or provide service itself. LDAP follows standardized way of managing directory information solutions of X.500. The Lightweight Directory Access Protocol, better...
1
61,891
Introduction How to split a file in to equal parts without knowing the number of records in the input file? Background Suppose you don't know how many records are in a dataset, but you want to divide the records as equal as possible among the output datasets. We can split a file into...
1
8,643
Servlets are server side components that provide a powerful mechanism for developing server side programs. Servlets provide component-based, platform-independent methods for building Web-based applications, without the performance limitations of CGI programs. Using servlets web developers can...
1
7,490
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,510
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,688
Java, has become now undoubtedly the fuel of the development of the Software System Technology.Developers, now thus take the challenge to prove the feelings of Java as the best positive catalyst of their development life's reactions.They feel the Class, as the ultimate classic sense of the...
0
2,573
Java has a class called File, which actually represents not a file you can read or write, but rather a filename. Using this class is highly recommended instead of simple strings, because it makes your file naming operating-system independent. You can easily find out wether a filename is relative or...
0
4,041
Automatic Conversion In Java type conversions are performed automatically when the type of the expression on the right hand side of an assignment operation can be safely promoted to the type of the variable on the left hand side of the assignment. Thus we can safely assign: byte -> short -> int...
0
52,170
Introduction A pattern of special characters is used to specify the format of the date. The example below demonstrates some of the characters. For a complete listing, see the javadoc documentation for the SimpleDateFormat class. Note: This example formats dates using the default locale...
0
19,201
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,696
The problem occurred when i was developing this app was that the connection of the phone with the computer. For this connection to work over the Wifi network the user must enter the correct IP address of the phone/computer. It's a bit of a downfall when it comes to the users side since there can be...
0
3,261
Before we understand what Java Serialization is, first we need to understand what serialization means? In computer science, in the context of data storage, serialization is the process of translating data structures or object state into a format that can be stored and reconstructed later in the...
0
1,066
Since JDK version 5.0, a new mechanism was introduced in Java that enables us to include additional information (known as metadata) directly into the java source code. This information is termed as Annotations. In English dictionary, Annotation means “a note by way of explanation or comment added...
0
1,002
Java 8 is the major release after the release of Java 5 that significantly improved the Java language. It has introduced many cool new features. One of them is the Default and Static methods in interfaces. This feature has reduced the burden of modifying the implementation classes of existing...
0
924
Java Runtime Environment uses classloaders to load classes dynamically into the Virtual Machine for execution. A class is a blueprint or a definition which represents a similar kind of objects. It describes the behavior of the objects of its type. In other words, It can be expressed as a named unit...
0
822
JDBC (Java Database Connectivity) is an API (Application Programming Interface) which is used to connect java to any database. It is used to communicate with various types of databases such as Oracle, MS Access, My SQL and SQL Server. It is a platform-independent interface between Java and...
0
636
Java.lang package contains the classes that are fundamental to the design of the Java programming language. Java.lang.Character Class Java.lang.Float Class Java.lang.Integer Class Java.lang.Character Class The java.lang.Character class wraps a value of the primitive type char in an...
0
888
Java.util package contains the collections framework, legacy collection classes, event model, date and time facilities, and miscellaneous utility classes. Java.util.ArrayList Class Java.util.Calendar Class Java.util.HashMap Class Java.util.ArrayList Class The java.util.ArrayList class...
0
893
A specific instant in time is represented with millisecond precision by the Date class. Date is interpreted as year, month, day, hour, minute, and second values using this class. But API for functions of this class was not so flexible and hence was not supported at international level. Also for JDK...
0
1,126