Ads block

Banner 728x90px
Showing posts with label Unit 3. Show all posts
Showing posts with label Unit 3. Show all posts

Explain about switch statement with an example.


Explain about switch statement with an example.
Java Switch Statement The Java  switch statement  executes one statement from multiple conditions. It is like  if-else-if  ladder statement. The switch state…
Read more »

Explain about while statement with an example.


Explain about while statement with an example.
Loop Statements In programming, sometimes we need to execute the block of code repeatedly while some condition evaluates to true. However, loop statements are …
Read more »

Explain about for statement with an example.


Java Statements A statement specifies an action in a Java program. For example, a statement may tell the add of values of  x  and  y  and assign their sum to…
Read more »