By using var args we can write java codes to accept zero to many values. Now lets see how to combine var args with other parameters. Note… Read more “14-variable length arguments in java”
Month: February 2016
13-Arrays in java
Array is a fixed length data structure. When we do not assign values to array, by default it will be filled with datatype of the array. Now… Read more “13-Arrays in java”
12-break,continue,return keyword in java
break-break keyword caused the loop to break the execute immediately. continue-continue keyword caused the loop to go to the next iteration immediately. return- return keyword caused the thread… Read more “12-break,continue,return keyword in java”
11-loops in java
Hello guys today we are going to learn about loops in java language. There are 4 main types of loops in java language. Those are : for… Read more “11-loops in java”
10-Conditional statements in java
An if statement can be followed by an optional else statement. Else statement executes when the Boolean expression is false. Now lets see an example with use… Read more “10-Conditional statements in java”
09-Read user inputs from keyboard
For read user inputs from the keyboard we need to import the java.util.Scanner class. This class is a simple text scanner which can parse primitive types and strings… Read more “09-Read user inputs from keyboard”
08- Method return types in java
Previously we wrote methods that having void type. now lets see other return types and how to do that. Now lets try to write a code for… Read more “08- Method return types in java”
07-Method Overloading
Method Overloading means declare multiple methods in the same class with the same method name but with different method parameters. Now lets try with a different example
06- Method parameters
What is a class? class is a template that represent the real world entity. Now lets try to write a java programme for add,substract,multipication and division of… Read more “06- Method parameters”
05-Methods in java
Now lets try to write methods for previously written arithmetic operations. when creating methods its need to mention the return type of that particular method.