Loops in Java

Looping is a common programming situation that you can expect to encounter rather regularly. Loop can simply be described as a situation in which you may need to execute the same block of code over and over. Java supports three looping constructs, which are as follows: for Loop do…while Loop while Loop  

Misc Operators in Java

In addition to the above mentioned, there are several other operators, which are supported by Java. Conditional Operator ( ? : ): he conditional operator is a ternary operator that contains three operands. Essentially, this operator is used for the evaluation of boolean expressions. The operator tests the first operand or condition and if the … Read more

The Bitwise Operators in Java

The bitwise operators available in Java can be easily applied to a number of data types. These data types include byte, short, long, int and char. Typically, any bitwise operator performs the concerned operation bit-wise. For instance, if you consider the example of an integer x, which has the value 60. Therefore, the binary equivalent … Read more

Modifier Types

Modifiers are catchphrases that you add to definitions to change their implications. The Java programming language has a wide and mixed bag of modifiers, including the accompanying: Non-Access Modifiers Java Access Modifiers In order to utilize a modifier, you incorporate its catchphrase in the meaning of a class, variable or method. The modifier goes before … Read more

Class/Static Variables

Class variables otherwise called static variables are declared with the static keyword in a class, yet outside a constructor, method or scope. There would just be one duplicate of each class variable for every class, paying little mind to what number of objects are made from it. Static variables are seldom utilized other than being … Read more