Computer Science, asked by sudipsarkar2004april, 1 month ago

What is control statement? Define different construct used in Java.(long question)​

Answers

Answered by srishti1897
1

Explanation:

A control statement is a statement that determines whether other statementswill be executed. An if statement decides whether to execute another statement, or decides which of two statements to execute for loops are (typically) used to execute the controlled statement a given number of times.

JAVA Datatypes

Datatype tells the compiler, what kind of data can be assigned to a variable. A datatype can be defined as a type that a variable can have. It can be of two types:

Primitive data type: A primitive data type refers to a type that is predefined in a language such as an int, float and char, etc. and has a fixed range that a variable can store.

User-defined data type: On the other hand, User-defined data type refers to a type which is defined by the programmer comprising of various built-in data types such as Class, Interface, and Arrays.

JAVA Keywords

These are reserved words in JAVA that cannot be used as a variable name or identifier. There are 50 Keywords in JAVA.

JAVA Literals

These are constant values assigned to a variable for example numbers, strings, and floating values.

Answered by khushi01655
2

Answer:

control statement in java is one of the fundementals required for java programming.it allows the smooth flow of a program. following pointer will be covered in this article .

  • decisions making statement
  • simple if statement
  • if-else statement
  • nested if statement
  • switch statement
  • looping statement
  • while
  • do - while
  • for
  • for-each
Similar questions