The Java language supports three types of comments − Sr.No. Comment & Description 1 /* text */ The compiler ignores…
Read More

The Java language supports three types of comments − Sr.No. Comment & Description 1 /* text */ The compiler ignores…
Read More
An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java…
Read More
Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. A multi-threaded program contains two…
Read More
To send an e-mail using your Java Application is simple enough but to start with you should have JavaMail API…
Read More
The term network programming refers to writing programs that execute across multiple devices (computers), in which the devices are all…
Read More
Java provides a mechanism, called object serialization where an object can be represented as a sequence of bytes that includes…
Read More
It would be nice if we could write a single sort method that could sort the elements in an Integer…
Read More
Prior to Java 2, Java provided ad hoc classes such as Dictionary, Vector, Stack, and Properties to store and manipulate…
Read More
The data structures provided by the Java utility package are very powerful and perform a wide range of functions. These…
Read More
Packages are used in Java in order to prevent naming conflicts, to control access, to make searching/locating and usage of…
Read More
An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods.…
Read More
Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. Encapsulation in Java…
Read More
As per dictionary, abstraction is the quality of dealing with ideas rather than events. For example, when you consider the…
Read More
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP…
Read More
In the previous chapter, we talked about superclasses and subclasses. If a class inherits a method from its superclass, then…
Read More
Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. With the…
Read More
Nested Classes In Java, just like methods, variables of a class too can have another class as its member. Writing…
Read More
An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs…
Read More
The java.io package contains nearly every class you might ever need to perform input and output (I/O) in Java. All…
Read More
A Java method is a collection of statements that are grouped together to perform an operation. When you call the…
Read More
Java provides the java.util.regex package for pattern matching with regular expressions. Java regular expressions are very similar to the Perl…
Read More
Java provides the Date class available in java.util package, this class encapsulates the current date and time. The Date class…
Read More
Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An…
Read More
Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated…
Read More
Normally, when we work with characters, we use primitive data types char. Example char ch = 'a'; // Unicode for…
Read More
Normally, when we work with Numbers, we use primitive data types such as byte, int, long, double, etc. Example int…
Read More
Decision making structures have one or more conditions to be evaluated or tested by the program, along with a statement…
Read More
There may be a situation when you need to execute a block of code several number of times. In general,…
Read More
A constructor initializes an object when it is created. It has the same name as its class and is syntactically…
Read More
Modifiers are keywords that you add to those definitions to change their meanings. Java language has a wide variety of…
Read More
Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve…
Read More
Java is an Object-Oriented Language. As a language that has the Object-Oriented feature, Java supports the following fundamental concepts −…
Read More
When we consider a Java program it can be defined as a collection of objects that communicate via invoking each…
Read More