Breaking News

Data Types in Java

Java language has a rich implementation of data types. Data types specify size and the type of values that can be stored in an identifier. In java, data types are classified into two catagories : …

Read More »

Type Casting IN JAVA

Type Casting IN JAVA Assigning a value of one type to a variable of another type is known as Type Casting. Example : int x = 10; byte y = (byte)x; In Java, type casting …

Read More »

Variables in java

Variables in java Java Programming language defines mainly three kind of variables. Instance variables Static Variables Local Variables 1) Instance variables Instance variables are variables that are declare inside a class but outside any method,constructor …

Read More »

Concept of Array in Java

An array is a collection of similar data types. Array is a container object that hold values of homogeneous  type. It is also known as static data structure because size of an array must be specified …

Read More »

Java Operators

Java provides a rich set of operators enviroment. Java operators can be devided into following categories Arithmetic operators Relation operators Logical operators Bitwise operators Assignment operators Conditional operators Misc operators Arithmetic operators Arithmetic operators are …

Read More »

Command line argument in Java

The command line argument is the argument passed to a program at the time when you run it. To access the command-line argument inside a java program is quite easy, they are stored as string …

Read More »

Java Package

Package are used in Java, in-order to avoid name conflicts and to control access of class, interface and enumeration etc. A package can be defined as a group of similar types of classes, interface, enumeration …

Read More »

Abstract class in java

If a class contain any abstract method then the class is declared as abstract class. An abstract class is never instantiated. It is used to provide abstraction. Although it does not provide 100% abstraction because …

Read More »

Object and Classes in java

Object and Classes Since Java is an object oriented language, complete java language is build on classes and object. Java is also known as a strong Object oriented programming language(oops). OOPS is a programming approach …

Read More »

Methods in Java

Method describe behavior of an object. A method is a collection of statements that are group together to perform an operation. Syntax : return-type methodName(parameter-list) { //body of method } Example of a Method public …

Read More »

Constructors in Java

Constructors in Java A constructor is a special method that is used to initialize an object.Every class has a constructor, if we don’t explicitly declare a constructor for any java class the compiler builds a …

Read More »

Garbage Collection in java

In Java destruction of object from memory is done automatically by the JVM. When there is no reference to an object, then that object is assumed to be no longer needed and the memory occupied …

Read More »

What is modifiers in Java ?

Modifiers are keywords that are added to change meaning of a definition. In Java, modifiers are catagorized into two types, Access control modifier Non Access Modifier 1) Access control modifier Java language has four access …

Read More »

Inheritance (IS-A) IN Java

Inheritance (IS-A) Inheritance is one of the key features of Object Oriented Programming. Inheritance provided mechanism that allowed a class to inherit property of another class. When a Class extends another class it inherits all …

Read More »