answersLogoWhite

0

What are java variables?

User Avatar

Anonymous

14y ago
Updated: 8/17/2019

It is something that holds a value.

ex:

string holds text.

char holds one character.

integer holds numbers.

etc

They can be declared by...

string myWords = "Hello, World!";

System.out.println(myWords);

This code will make a console say whatever is inside of that variable, which happens to be: "Hello, World!".

User Avatar

Wiki User

15y ago

What else can I help you with?