LATEST BEGINNER ON CATEGORY "JAVA"

Interface in Java

The interface is a mechanism to achieve fully abstraction. There can be only abstract methods in interface, not method body. An Interface is also used to achieve multiple inheritance in Java.

Java  J2EE 

Abstract Class in Java

If you are declared with abstract keyword of a class is called abstract class. It can have abstract and non-abstract method (method with body).

Java  J2EE 

Java Inner Class

In java Inner class or nested class is declared inside the class or interface. We use inner class because it increases more readable & maintainable of code.

Java  J2EE  Class 

Java Conversion

If you want to convert string to float,double,int,date and vice- versa then this article are very useful for that

Java  J2EE 

Reentrant Monitor in Java

If you are using more than one synchronized method in the program and want to access both synchronized method in a program on single thread. But problem is that lock is acquire only one synchronized method at a time on single thread. So, you use this

Shutdown Hook in Java

Before JVM shuts down if you want to execute some code, use shutdown hook.

Daemon Thread in Java

In java, Damon thread is a low priority thread .It is used for providing background support to any user thread to same process as the daemon thread.

Event & Listener in Java

If you are excited to know how to swing component event & listener are working then this article is very important for that

Java 

Java Swing

If you are excited to coding for creating a windows based application then Java Swing is the best way .

Java 

How to execute a java program without having a main () method

For solve the problem are possible only by the static Initialization block.

Java  Javac 

FileWriter & FileReader Class in Java

if you have to read and write the textual information Then Java has suggested not to use the FileInputStream and FileOutputStream classes . So, it's widely used for that

Java  J2EE 

SequenceInputStream Class in Java

If we want to read data from multiple stream in java input/output operation then SequenceInputStream class is very useful for that.

Java  File  J2EE 

Variable Arguments(Varargs ) in Java

If we don’t know how many arguments we will have to pass in the method .Varargs is the better approach.

Java  J2EE 

exception handling in java

Exception stands an event that disrupts the normal flow of the program. It is an object which is thrown at run time. Technical definition it is an mechanism to handle runtime errors such as classnotfound, SQL, remote etc.

Java 

Serialization in Java

Serialization is a process of converting an object into a stream.

Java  JMS  J2EE  EJB  Hibernate 

Java Console Class

The Java Console class is often using to get input from console. It provides methods to read text and password.

Java  J2EE 

StreamTokenizer in Java

The StreamTokenizer class allows you to break an input stream into tokens such as words.

Java  J2EE 

Generate random numbers in Java

There are two principal means of generating random (really pseudo-random) numbers: one is using the Random class and the other is using the Math.random method.

Java  Class 

Getter and Setter in Java

Getter and setter methods are used in Java to retrieve and manipulate private variables in a different class.

Java 

Encapsulation

The whole idea behind encapsulation is to hide the implementation details from users. If a data member is private it means it can only be accessed within the same class. No outside class can access private data member (variable) of other class.

Java Regex or Regular Expression in java

Regular Expression used to define constraint on strings such as password and email validation.

Java  J2EE  Regex 

Object Class in Java

By Default, the Object class is the parent class of all the classes in java or we say, it is the topmost class of java.

Java  J2EE 

Using Cursor in CallableStatement

A cursor defines the runtime execution environment for query when the result of the query execution can be captured.

Callable Statement in Java

In Java, CallableStatement is used to call the stored procedures and functions by using an object of the CallableStatement Interface.

Quick overview of “public static void main(String args[])”

Variation of "public static void main(String args[])" and different altering cases and its corresponding outputs and errors.

Java 

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!