Computer Science, asked by kaushikijha11, 5 hours ago

c) Write the valid Java statements for the following:i) To assign a value 10 to a variable tenii) To store the value false to a variable FALSE

Answers

Answered by krishnasikarwar421
1

In Java, there is a variable type for Boolean values: boolean user = true; So instead of typing int or double or string, you just type boolean (with a lower case "b"). After the name of you variable, you can assign a value of either true or false.

Similar questions