that post was in response to your previous one where you assumed wrongly that i was trying to get help with homework. look at the language, the whole thing is talking down, but yes, after that you...
Type: Posts; User: chrish
that post was in response to your previous one where you assumed wrongly that i was trying to get help with homework. look at the language, the whole thing is talking down, but yes, after that you...
the teacher said that declaration was wrong, but the way the question was worded i think that either one would be correct; declaring a variable defines it's type.
just because i asked a simple question is no reason to talk down to me.
as far as I know a declaration does exactly that, it defines a variable's type and gives it a name.
it isn't from homework; thanks for assuming though we all know what that does. it was a test question, btw.
pls post a response if you have an opinion.
I know what they all mean... A declaration requires just 2 things, a type, and a variable name. Pls answer what you think is correct.
so what does that response mean? do you think that the correct answer is "type" or do you think that "declaration" is correct, or both?
how would you answer the following question?
"Every variable in a Java program must have a ___________, which indentifies the kind of data that it will store."
would "declaration" be a valid...