Collection Classes in Java

Collection Classes in Java Java provides a set of standard collection classes that implement Collection interfaces. Some of the classes provide full implementations that can be used as-is and others are abstract class, providing skeletal implementations that are used as starting points for creating concrete collections. The standard collection classes are summarized in the following […]

Collections in Java

Collections in Java The collections framework was designed to meet several goals. i.The framework had to be high-performance. The implementations for the fundamental collections (dynamic arrays, linked lists, trees, and hashtables) are highly efficient. ii.The framework had to allow different types of collections to work in a similar manner and with a high degree of […]

Interfaces in Java

Interfaces in Java An interface is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface.An interface is not a class. Writing an interface is similar to writing a class, but they are two different concepts. A class describes the attributes and behaviors of an object. An […]

Generic Methods in Java

Generic Methods in Java Generics in Java is one of important feature added in Java 5 along with Enum, autoboxing and varargs , to provide compile time type-safety. Generics is also considered to be one of tough concept to understand in Java and somewhat it’s true as well. I have read many articles on generics […]

Constructors in Java

Constructors in Java If an variable  is declared inside the class outside the methods then such kind of variables are called “instance variables”.If an instance variable is declared and not initialised then it will automatically initialised with default value of that variable type.If we donot want the default value then we can initialised the instance […]

Methods in Java

Methods in Java       A Java method is a collection of statements that are grouped together to perform an operation. When you call the System.out.println method, for example, the system actually executes several statements in order to display a message on the console. Now you will learn how to create your own methods with […]

Regular Expressions in Java

Regular Expressions in Java Java provides the java.util.regex package for pattern matching with regular expressions. Java regular expressions are very similar to the Perl programming language and very easy to learn. A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings, using a specialized […]

Java Methods

Java Methods A Java method is a collection of statements that are grouped together to perform an operation. When you call the System.out.println method, for example, the system actually executes several statements in order to display a message on the console. Now you will learn how to create your own methods with or without return […]

oops concept in Java

oops concept in Java oops: To develop an application we use a programming language that follows one of the following concepts. 1.procedure oriented concepts. 2.object oriented concepts 1.procedure oriented concepts: The application that are developed using procedure oriented concepts are based on procedures or functions. Drabacks of procedure oriented concepts: i.The application that are developed […]

Strings in Java

Strings in Java A String represents a group of characters.A string is a predefined class meant for storing group of charactres. The string objects can be created in 2 ways. 1.We can represents a string by enclosing a group of characters directly with in double codes” “. String s=”hello”; 2.We can create a string object […]