Question #595

How to declare a field inside the class in Java?

Expert's answer

You have to declare the corresponding variable in the body of the class. To create a field you can use variables of any type (even of the types created by the programmer).

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS