Object oriented programming concepts is generally termed as OOPs which uses Object in programming. It uses Inheritance, polymorphism, abstraction and Encapsulation. The main purpose of this concept is to increase the re usability and maintainability. Let us discuss below the OOP’s concepts in detail OOPs: Object Class Method Polymorphism Inheritance…
Binary operators performs operations between two operands Lets go through different types of Binary operations with java coding example below: Addition Adds two operands . The below code example adds two numbers x=1, y=2 and as a result z prints 3 Likewise you can also use ‘+’ for string concatenation.…
Unary operators performs operations with single operand Lets go through different types of Unary operations with java coding example below: Increment It increments the values of an integer. There are two types of Increment Pre-Increment Post-Increment Pre- Increment When you place ++ before the variable name like ++ x it instantly…