Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

Hey guys what are some constraints in naming a variable in Java?

OpenStudy (anonymous):

@kx2bay @ganeshie8

OpenStudy (anonymous):

can contain only letters, underscores, numbers and $. must start with a letter. can't be one of the reserved keywords (while, break, if, etc) but could be whileMad. that's all i can remember off the top of my head...

OpenStudy (e.mccormick):

You remembered it pretty well. Here is the authority and other than some conventions, it agrees: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!