Skip to main content

Posts

Showing posts with the label Java

if-Statement in Java (Control Flow in Java)

Teachmeandroidhub #java #if-elese Statement If-else Satament in Java                                               If-Statement mainly used to test the condition in this case it returns true or false .Let's Assume a situation where you have been asked or said to execute a statement there may be a condition should be true or false. Let suppose you have done something wrong then your father will be ask  that have you done this or not you may return true or false .If retun true then you may be get slapped else some other good thing can be happen also with you.So apart from above there are some different type if-else statement are as following if Statement if-else Statement if-else-if Ladder nested if statement  If Statement  in Java 1. If  Statement: -  Java  if condition check condition if  condition returns true then execute code under if block or if  condition returns false then exit. Syntax if(condition){   //code to be executed  } in the a

Java First Porogram Expained in hindi by Rajeev lecture 1.2

Teachmeandroidhub

Types of Java Application | Java in Hindi by Rajeev lecture 1.1

Teachmeandroidhub

What is Java | Applications Of Java in hindi | Java Tutorial in Hindi | ...

Teachmeandroidhub

Set Environment variable for java jdk in hindi in windows10,8 1,8,,7 | J...

Gang

Java Tutorial-Static Keyword In Java by-Teachmeandroidhub

Java Tutorial-Static Keyword In Java by-Teachmeandroidhub Static Keyword:- First of all we need to know about static .This terms defines stability itself .Suppose your name “ aman” so all the person who knows you they will call you “aman” in case you changed you name then all will call you with  new name mean term related with static is common for all object of class. Let discuss with a figure.                             fig-1                                                                                             fig-2 According to fig-1 let’s suppose a glass full of water and two person watching this glass after some time someone has drunk some amount of water Now glass is half empty and half filled.as like this when we make a variable static it means it will be available for all objects of class. Static Keyword in Java: Static Is just a keyword in java “keyword” means program don’t need to definition static they just have to use it and meaning of key