String addition and Special Operators in Java.

In this article, String addition and Special Operators in Java are explained in detail with examples.
This operator is '+'. It is used to add or concate two or more string as a single string.
Ex
"Hello"+"World" =>"Helloworld"
It is also used to add a string with any value/variable and form a new string.
Ex
"sum is: "+(a+b)
Here value or variable is of any data type.

Typecasting in Java.

In this article,Typecasting in Java is explained in detail with examples.It is the process of converting one data type value into another datatype value.
In the java program, it is done in two ways.
  • Implicit type casting.
  • Explicit  type casting.
Implicit typecasting.
This casting is done by Java compiler automatically during the compilation process. This casting is done mainly in two situations.
Ex
1. In mathematical expressions, lower datatype values are automatically converted to higher datatype value.

Control and Branching Structures in Java.

In this article, Control and Branching Structures in Java is explained in detail with examples.
Control Structure.
In general program execution starts with main() and it follows line by line/linear/sequential flow of execution takes place until the end of main().
Ex:
public static void main(String args[])
{-----
------
body   // (Linear Flow of Execution/Step by step execution)
-----  
------
}

Multiple if and If-else control structures.

In this article,Multiple if and If-else control structures are explained in detail with examples.
In this control structure, we use multiple if statements one after the other/sequential as follows.
Syntax
if(condition 1)
{---
body1;
---
}
if(condition 2)
{---
body2;
------
}

Nested-if control Structure.

In this article,Nested-if control Structure is explained in detail with examples.
In this, you will come to know about the Nested if control structure Using an if-condition block inside another if condition block is known as nested-if.
Syntax
if(condition 1)
{
outer true part;
}
if(condition 2)
{
Inner true part;
}
----
}

Connect with Us by Subscribing here for more Updates..!

* indicates required