answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

if statement.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are decision statements in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 }


How many parts are there in java?

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


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

Yes it is


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.