Question: Which is not a correct variable declaration and value assignment in Java? A. int x = 14; B. double d = 3.147; C. float f
Which is not a correct variable declaration and value assignment in Java? A. int x = 14; B. double d = 3.147; C. float f = 3.147; D. char c = 'R'; E. boolean b = false;
Which statement will cause an syntax error? A. char c = 'Q'; B. String s = "apple"; C. char c = ' '; D. String s = " "; E. char c = "K";
Which defines a constant of double type in Java? A. public double d = 0.32685; B. private double d = 0.32685; C. static double d = 0.32685; D. final double d = 0.32685; E. const double d = 0.32685;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
