Computer Science, asked by AbhigyanGhosh, 1 day ago

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 MichMich0945
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