answersLogoWhite

0

Decision statements are statements that are used for taking logical decisions. They contain a condition whose output is a boolean true or false.

Ex:

if (name.equals("Rock")) {

System.out.println("Hi Rocky!!!");

}

The output of the if condition will depend on the value that the variable name holds. This is a decision statement

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Explain all the control statements in java?

The if and switch statements are commonly referred to as decision statements. When we use decision statements in our program, we're asking the program to evaluate a given expression to determine which course of action to take. It decides the control flow of the program.


What is the pane in which the Java programming statements are located called?

The pane in which the Java programming statements are located is called


What are the three looping statements in java PL?

There are 4 different looping statements in Java. They are:While loopDo-While loopFor loopFor Each loop


What are the statements in java?

There are many kinds of statements that are used in Java and they are predominantly used for database connectivity using JDBCEx:PreparedStatement - for normal SQL QueriesCallableStatement - for stored procedures


What is a method in Java?

A Java method is a sequence of statements. It is comparable to a function, subroutine, or procedure in other languages.


What are the uses of java database connectivity?

Java Database Connectivity, a Java API that enables Java programs to execute SQL statements. This allows Java programs to interact with any SQL-compliant database.


How are java program statements terminated?

Each statement in Java ends with a semicolon, for example: int a; a = 5; int b = 10;


What is syntax for exceptional handling in java?

try{ statements; } catch(Exception e) { message }


Is it possible that overuse of selection and repetition statements can lead to JAVA Run time Bloat?

Yes it is


How many parts are there in java?

There are many parts.Import statements.Customs Functions.Main Method.Try-Catch-Finally Statements.


How many package and import statements are allowed in a java source file?

package - only one imports - unlimited. You can have as many import statements in your class as you want.


What is Logic error in java programming?

Logical errors are grammatical errors or mistakes made by a programmer in java, it may not affect the program design but it can change the context of the statements.

Trending Questions
How is transformer saturation avoided in class B push pull amplifier operation? What is the significance of Environmental Engineering? What the the requirements to get it certification? What is HTML software do? Why conductors offer resistance? When the rotor of an electric motor is jammed the coils are likely to overheat and even burn Explain why this does not happen when the rotor is not jammed? I am coming up to the point in my bachelors degree where I have to pick my programming languages Here are my options Visual Basic C plus plus or Java I can pick two Which are better for the industry? What are some of the different concrete floor finishes? Which is not a way that machines can make work easier? What is the capacitance of a parallel plate capacitor with a dielectric of oil-soaked paper The dielectric constant is 3.8 the distance between the plates is 0.00625 inches and the plate area is 0.25? Write a programme in c to convert Fahrenheit to celsius and vice versa? What is the principle for radiation detection of semiconductor detectors? What is devising of algorithms? What is the scope of making a career as a Pro c developer in Polaris company Is it same like being a C plus plus developer? Is c plus plus and java are the same? The parts of a lathe machine? What is the most important factor to consider when choosing an appropriate tone for your technical writing? How can you display photos and images in Java Swings? What does char-wallah mean? What is weapons system engineering?