Which of the following is not a valid Data type declaration statement in Java?
* A) int a = 5; B) float f = 2.13; C) d = 5.6435789 D) char chr = ‘P
Answers
Answered by
0
Heyo!
Answer:
(c) d = 5.6435789
Explanation:
Variable Declarations in Java
- While declaring a variable in Java you need to use the following syntax:
datatype identifier = initial value
Any variable declared without following the above syntax will result in an error.
In this case variable d has no datatype.
Hope this helps you <3
Similar questions
Math,
16 hours ago
Math,
16 hours ago
English,
16 hours ago
Business Studies,
1 day ago
English,
8 months ago