Java Tutorial

Java Keywords?

Java keywords are also known as reserved words. Keywords are particular words which acts as a key to a code. These are predefined words by Java so it cannot be used as a variable or object name. List of Java Keywords A list of Java keywords or reserved words are given below: abstract: Java abstract keyword is used to declare abstract class. Abstract class can provide the implementation of interface. It can have abstract and non-abstract methods.boolean: Java boolean keyword is used to declare a variable...

Read more...

Operators in java?

Operator in java is a symbol that is used to perform operations. For example: +, -, *, / etc. There are many types of operators in java which are given below: Unary Operator,Arithmetic Operator,Shift Operator,Relational Operator,Bitwise Operator,Logical Operator,Ternary Operator andAssignment Operator. Java Operator Precedence Operator TypeCategoryPrecedenceUnarypostfixexpr++ expr--prefix++expr --expr +expr -expr ~ !Arithmeticmultiplicative* / %additive+ -Shiftshift<< >> >>>Relationalcomparison< > <= >= instanceofequality== !=Bitwisebitwise AND&bitwise exclusive OR^bitwise inclusive OR|Logicallogical AND&&logical OR||Ternaryternary? :Assignmentassignment= += -= *= /= %= &= ^= |= <<= >>= >>>= Java Unary Operator The Java unary operators require only one...

Read more...

Unicode System? And What is Unicode? Why java uses Unicode System?

Unicode System Unicode is a universal international standard character encoding that is capable of representing most of the world's written languages. Why java uses Unicode System? Before Unicode, there were many language standards:ASCII (American Standard Code for Information Interchange) for the United States.ISO 8859-1 for Western European Language.KOI-8 for Russian.GB18030 and BIG-5 for chinese, and so on. Problem This caused two problems:A particular code value corresponds to different letters in the various language standards.The encodings for languages with large character sets have variable length.Some common characters are encoded...

Read more...

Data Types in 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 Data Types In Java language, primitive data types are the building blocks of data manipulation. These are the most basic data types available in Java language. Java is a statically-typed programming...

Read more...

Java Variables?

A variable is a container which holds the value while the java program is executed. A variable is assigned with a datatype. Variable is a name of memory location. There are three types of variables in java: local, instance and static. There are two types of data types in java: primitive and non-primitive. Variable Variable is name of reserved area allocated in memory. In other words, it is a name of memory location. It is a combination of "vary + able" that means its value can...

Read more...