This Question is related to Java Language What is wrong with

This Question is related to Java Language

What is wrong with the following variable declarations? int Km*h = 90; String double = student1; int int1 = \"50\"; String newCourse = \"CS-140\" int y = x; String 1_Car = \"BMW\";

Solution

int km*h=90;---->in the variable declaration we shoulg not give special symbols

String double=student1

here the wrong is we should not give variable name as datatpe(double)

int int1=\"50\"

integer values can not be represented in the quotes

int y=x in this x should be declared first

String 1_Car in this the variable names should not start with numbers

This Question is related to Java Language What is wrong with the following variable declarations? int Km*h = 90; String double = student1; int int1 = \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site