answersLogoWhite

0


Best Answer

Partially true and partially false.

A variable's declaration must happen atleast one life before the usage of that variable. Therefore we can take this as declaration can be done anywhere provided we declare it before the usage. otherwise it would throw a compilation error.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

True but the declaration must happen before the variable is used.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

False. Declaration has to appear atleast one line before the variable is actually being used. so anywhere does not hold good.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Declaration can appear anywhere in the body of java method ATrue B False?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What is the gospel yesterday?

being atrue daugther of INA


Atrue or false a horse can get upset if he is separated from its herd?

False


Is Speed decreases as distance decreases for the same time atrue statement?

Yes.


What is atrue sentence about Aten the Egyptian sun god that starts with a N?

News flash, aten was the egyption sun god!


Atrue bearing measures points in a clockwise direction around the north-south line. Duenorthhasa bearing of 0° or 360°. Dueeasthas a bearing of 90°, duesouthhas a bearing of 180°, and due west has a bearing of 270°.A ship is located at point B on a map?

232


Can you love a girl that grew up with your partner more than your partner herself?

yes, it is not strange to have feelings for a girl u grew up with and then she leaves and all of a sudden she comes back and ur madly in love with her it's atrue calasic case of I'm in love with my best friend from my childhood everybody goes throught it


What is atrue statement about culture shock?

Culture shock is the feeling of disorientation and anxiety when individuals are exposed to a culture different from their own. It can manifest in feelings of homesickness, confusion, or frustration as individuals try to navigate the new cultural norms. However, it can also lead to personal growth, increased cultural awareness, and a broader perspective on the world.


Can you break a lease for rodent problems?

You can, so long as you can document that there is in fact a serious rodent problem (and by serious, you fear for your health or safety) and that you've notified the landlord and given him a chance to fix the problem. Once you've satisfied that (and you can do that in a couple days), you can break the lease. The landlord may sue you for breach of the lease, but you'd have a pretty good case, so long as it's atrue rodent problem and not a mouse here or there.


How do you solve the problem 3x2 - 7x - 20?

[ 3x2 - 7x - 20 ] is not a problem, and needs no solution. It's just an expression thatstands for a number, and there's no way to find out what the number is until you knowwhat number 'x' is.If you had said that this expression is equal tosomething, then you'd have an equation,and you could ask us to find what number 'x' must be in order to make the equation atrue statement. But all you have just now is a number, that depends on the value of 'x'.


How can you get a true friend?

you can tell that the friendship is true when u can trust your friend with all your secrets and if he/she is always there for you. As well as when your friend trusts you and never leaves you in tough times.


Difference between atrue substance and a colloid?

A true substance has only one state of being, like a solid or liquid or gas. A colloid can be either a solid or liquid, depending on how much pressure is put on it. It's kind of complicated, but basically, a solid or liquid can't change form; a colloid can. Fun way to test it: Mix water with baking powder and play with it in your hands. If you press on it, it solidifies, but when you release pressure, it becomes a liquid again. That's a colloid! Hope that helps!


Is there is atrue vampaires?

vampires are not real because in life there are to kinds of human (vegetarian) and normal ones that eat anything like meat chicken etc.... so pleas don't ever put in your wide mind that there are vampire's. and people use to do and tell there kids about long time ago that IF YOU DIDN'T PRAY AFTER YOU SLEEP THE VAMPIRE'S WILL COME AND TAKE YOUR BLOOD so its not real and those people who make there self's VAMPIRES are only doing like that to take a popularity. thanks for reading :D