JAVA Tutorials

Operators and Assignments Part-5

Operators in Java Mainly the categorization of operators can be in the  following types: new Operator In java we use this operator to create an object. This object can be of class or even array. So by using new operator,compiler performs memory allocation to the variable. Unlike other languages, this memory allocation is deallocated automatically by Garbage …

Operators and Assignments Part-5 Read More »

Operators and Assignments Part-3

Operators in Java Operators can be categorized in the  following types: Bit-wise Operator Bit-wise operators are & (and), | (or), ^ (x or), ! (complement) and ~ (tiled). Studying these operators separately as: & operator: This operator gives the boolean value true only when all the conditions are true. This operator can be used on more than 2 conditions simultaneously. For …

Operators and Assignments Part-3 Read More »

Operators and Assignments Part-2

Operators in java Operators can be categorized in the  following types: Concatenation: In Java, + operator is very flexible which means that it can be used to perform arithmetic operation as well as used to concatenate strings. Therefore it is also called as String Arithmetic Operator and String Concatenation Operator. For example, System.out.println(2+3); System.out.println(“Mark”+” Zuckerburg”); System.out.println(“Mark”+42); Output of …

Operators and Assignments Part-2 Read More »