click below
click below
Normal Size Small Size show me how
Declare-Assign
Jave Declaration and Assignment Statements
| Question | Answer |
|---|---|
| Declare an integer variable named erceptor. | int erceptor |
| Declare a real number variable named entendre | double entendre |
| Declare a boolean variable named bozo | boolean bozo; |
| Declare a character variable named broiled; | char broiled; |
| Declare a String variable named cheese; | String cheese; |
| Store the number 5 erceptor | erceptor = 5; |
| Store the number 58.632 in entendre | entendre = 58.532; |
| Store the value false in bozo. | bozo = true |
| Store the character z in broiled; | broiled = 'z'; |
| Store the string literal gouda in cheese. | cheese = "gouda"; |