Java

Java Tutorials

Welcome To Java !

Welcome to java! Java is a high level, modern programming language designed in the early 1990’s by Sun Microsystems, and currently owned by Oracle. Java is Platform Independent, which means that you only need to write the program once to be able to run it on a number of different platforms! And is portable, robust, …

Welcome To Java ! Read More »

tutorials of java

What is Java?

Java is a high level, modern programming language designed in the early 1990s by Sun Microsystems, and currently owned by Oracle. It is Platform Independent, which means that you only need to write the program once to be able to run it on a number of different platforms! Platform : Any hardware or software environment …

What is Java? Read More »

Object & classes in java

Java Classes & Object

Java Classes & Object : Java is an Object-Oriented Language. As a language that has the Object-Oriented feature, Java supports the following fundamental concepts : Polymorphism Inheritance Encapsulation Abstraction Classes Objects Instance Method Message Passing In this , we will look into the concepts – Classes and Objects. i) Object : Objects have states and …

Java Classes & Object Read More »

data types in java

Java Data Types

Java Data types specify the different sizes and values that can be stored in the variable. There are two types of data types in Java: Primitive data types: The primitive data types include boolean, char, byte, short, int, long, float and double. Non-primitive data types:The non-primitive data types include Classes, Interfaces, and Arrays. Java Primitive …

Java Data Types Read More »

variable in java

Java Variable

A Java variable is given a name (or identifier), such as area, age, height, and the like. The name uniquely identifies each variable, assigning a value to the variable and retrieving the value stored. Variable is a name of memory location. There are three types of variables in java: local, instance and static. Java Variable: …

Java Variable Read More »

operators in java

Java Operators

Java Operator: In Java a symbol are used perform operations. Like: +, -, *, / and many other Java Operators. There are many types of operators in Java which are given below: 1. Unary Operator,2.Arithmetic Operator,3. Shift Operator,4. Relational Operator5. Bitwise Operator,6. Logical Operator,7.Ternary Operator and8.Assignment Operator. Java Operator Precedence: Operator Type Category Precedence Unary …

Java Operators Read More »

constructor in java

Java Constructor

Java Constructor are special methods invoked when an object is created and are used to initialize them. A constructor can be used to provide initial values for object attributes. The constructor is called when you create an object using the new keyword. There are two types of constructors in Java: → default constructor→ parameterized constructor …

Java Constructor Read More »

COMMENTS IN JAVA

Java Comments

The purpose of including Java Comments in your code is to explain what the code is doing. Java supports both single and multi-line comments. All characters that appear within a comment are ignored by the Java compiler. Types of Java Comments: There are three types of comments in Java. i)Single Line Comment: A single-line comment …

Java Comments Read More »

loops in java

Java Loops

A Java Loops statement allows us to execute a statement or group of statements multiple times and following is the general form of a loop statement in most of the programming languages. There may be a situation when you need to execute a block of code several number of times. In general, statements are executed …

Java Loops Read More »

character in java

Java Characters

Normally, when we work with Java Characters, we use primitive data  types char. Example: char ch = ‘a’;// Unicode for uppercase Greek omega characterchar uniChar = ‘\u039A’;// an array of charschar[] charArray ={ ‘a’, ‘b’, ‘c’, ‘d’, ‘e’ }; The Java compiler will also create a Character object for you under some circumstances. For example, …

Java Characters Read More »