Please help me for my exam question!
1)Discuss briefly what is meant by the termoperator precedence.Explain how precednce is used to evaluate the expression 3 + 4 * 5. Re-write the expression using parenthses to indicate explicitly the order of evaluation of operators.
2)Explain what is meant by the scope of an identifier in JAVA.
3)Discuss the idea of encapsulation in object design,explaining why it is important. Also explain how access control in JAVA supports encapsulation.
Please help me about the above questions.
Actually, I can find something in The Big Java book. But I am not sure how to answer appropriately and I can get mark.
Thanks.
What good will it do if somebody does your work for you?
jverda at 2007-7-12 14:57:53 >

Face it pancake, you're Java knowledge is cr阷e.
> 1)Discuss briefly what is meant by the term
> operator precedence.Explain how precednce is
> used to evaluate the expression 3 + 4 * 5. Re-write
> the expression using parenthses to indicate
> explicitly the order of evaluation of operators.
That doesnt even have anything to do with Java, Programming
or Computer Science, bobo, lol. :)
You should have learned that in like 3rd or 4th grade math class.
I have 6 words for you: please excuse my dear aunt sally
> Please help me about the above questions.> Actually, I can find something in The Big Java book.> But I am not sure how to answer appropriately and I> can get mark.> Thanks.Post you answers and then then ask for feedback. Don't be so
> Post you answers and then then ask for feedback.> Don't be so lazy._helloWorld_ (<-- is actually the other guy in your class with the laptop open right now ;-)
OK...I know all your opinions...I seems that I should work hard on my English first.Thanks you guys all the same...
> OK...> I know all your opinions...> I seems that I should work hard on my English first.> Thanks you guys all the same...This has nothing to do with your English, unless you simply can't understand what these people are saying.
> OK...
> I know all your opinions...
> I seems that I should work hard on my English first.
> Thanks you guys all the same...
You give answers people will discuss them you just write down question people will call you lazy. So either give some answers/reasons or people won't help you.
hahah...Actully, I don't know what is operator precedence and encapsulation.After looking them up in a dictionary, I just know the basic meaning of the words, it doesn't help in doing JAVA questions.That's all right.After all, thanks for your replying.
> hahah...
> Actully, I don't know what is operator precedence and
> encapsulation.
> After looking them up in a dictionary, I just know
> the basic meaning of the words, it doesn't help in
> doing JAVA questions.
> That's all right.
> After all, thanks for your replying.
That's a start - explain what you think operator precedence is (it is likely the same for java but I want to see what you think it is before confirming that ).
> Actully, I don't know what is operator precedence http://en.wikipedia.org/wiki/PEMDASYOU UKers SAY BODMAS? WEEEEEEEEEIRD.It only goes to support my theory, people from the uk are CUH-RAY-ZEE. : )And dont even get me started on Canadians and BEDMAS...
OK.What I know is that Theoperator precedence is discribing the order to execute something.Such as you are doing maths...You do the multiplication and division before subtraction and addition.Do you think it is a proper answer to the question?
> > Actully, I don't know what is operator precedence
>
> http://en.wikipedia.org/wiki/PEMDAS
> YOU UKers SAY BODMAS? WEEEEEEEEEIRD.
> It only goes to support my theory, people from the uk
> are CUH-RAY-ZEE. : )
>
> And dont even get me started on Canadians and
> BEDMAS...
You write like that and you are calling Canadians wierd ? (Thankfully being called wierd by a wierd guy has little to no impact on my views) ;-P
> You write like that and you are calling Canadians
> wierd ? (Thankfully being called wierd by a wierd
> guy has little to no impact on my views) ;-P
Ive had just quite enough of you Aknibbs.
I hope youre ready for an all out flame war of attrition. : )
You are a [insert escalation word here]!
> OK.
> What I know is that
> Theoperator precedence is discribing the order to
> execute something.
> Such as you are doing maths...You do the
> multiplication and division before subtraction and
> addition.
> Do you think it is a proper answer to the question?
That is exactly what the question is asking for. Order of operations. Parentheses, exponents, multiplication, division, addition, subtraction.
This may be of some help for precedence. http://www.uni-bonn.de/~manfear/javaoperators.php
> > You write like that and you are calling Canadians
> > wierd ? (Thankfully being called wierd by a wierd
> > guy has little to no impact on my views) ;-P
>
> Ive had just quite enough of you Aknibbs.
> I hope youre ready for an all out flame war of
> attrition. : )
Up here in Canada we include things like apostrophe. Are the optional where you are from ?
;-P
>
> You are a [insert escalation word here]!
Stairs or elevator - both are used for excalation :-)
>> Up here in Canada we include things like apostrophe. Are the optional where you are from ?Were too damned busy on the east coast to worry about apostrophes, lol!(Everyone on the east coast has resolved to fill in their apostrophes when they retire)
> Up here in Canada we include things like apostrophe.> Are the optional where you are from ?> > ;-P Big talk from someone who can't spell weird.;-)
> >> Up here in Canada we include things like
> apostrophe. Are the optional where you are from ?
>
> Were too damned busy on the east coast to worry about
> apostrophes, lol!
> (Everyone on the east coast has resolved to fill in
> their apostrophes when they retire)
Haven't you heard it's far easier to do a job right the first time then to go back and correct it ?
;-P
> > Up here in Canada we include things like
> apostrophe.
> > Are the optional where you are from ?
> >
> > ;-P
>
> Big talk from someone who can't spell weird.
>;-)
I see irony is lost on you - and I had such high hopes. ;-P
> I see irony is lost on you - and I had such high> hopes. ;-PI call a truce. Weve suffered too many casualties on both sides, lol.What the hell am i going to do on my 3 day weekend?
> What the hell am i going to do on my 3 day weekend?Sure, rub it in that Canadians have already had their Victoria Day long weekend...
> Sure, rub it in that Canadians have already had their> Victoria Day long weekend...Victoria Day? How... "dainty".
> > What the hell am i going to do on my 3 day> weekend?> > Sure, rub it in that Canadians have already had their> Victoria Day long weekend...Haha! Suck it Canucks!
> > Sure, rub it in that Canadians have already had> their> > Victoria Day long weekend...> > Victoria Day? How... "dainty".We are, uh, not amused.
> Haha! Suck it Canucks!They've probably made up for it several times over with all the 37.5-hour work-weeks, though.kev (<-- As the work week goes into the 45th and final hour).
> Sure, rub it in that Canadians have already had their Victoria Day long weekend...
Since they hate those English, it's called "National Patriots Day" (Journe nationale des Patriotes) in Quebec.
Most people call it the May 2-4 weekend (a case of beer also being called a "2-4").
It's the weekend many people open up their summer cabins/cottages and,
well, drink a 2-4!
> > I see irony is lost on you - and I had such high
> > hopes. ;-P
>
> I call a truce. Weve suffered too many casualties on
> both sides, lol.
>
> What the hell am i going to do on my 3 day weekend?
Fill in all those missing apostrophes ? ;-P
> > What the hell am i going to do on my 3 day> weekend?> > Fill in all those missing apostrophes ? ;-PWell played, my friend. Well played. : )
>> Most people call it the May 2-4 weekend (a case of beer also being
>> called a "2-4"). It's the weekend many people open up their summer
>> cabins/cottages and, well, drink a 2-4!
You dont even know... im sitting in the most obnoxiously hot
office ever, with dust caking everything and the sun blaring through
the windows... so reading your post felt like someone poured cold
water over my head, lol.
I NEED A VACATION!
> >> Most people call it the May 2-4 weekend (a case of
> beer also being
> >> called a "2-4"). It's the weekend many people open
> up their summer
> >> cabins/cottages and, well, drink a 2-4!
>
> You dont even know... im sitting in the most
> obnoxiously hot
> office ever, with dust caking everything and the sun
> blaring through
> the windows... so reading your post felt like someone
> poured cold
> water over my head, lol.
>
> I NEED A VACATION!
WHAT ?
You can't even find things to occupy yourself for 3 days and you think you need a vacation ?
LOL.
> > Fill in all those missing apostrophes ? ;-P> > Well played, my friend. Well played. : )Indeed... looks like he brought his "Eh..." game.
Nice, It seems that my thread is a chatting board. : )Could you guys tell me what is encapsulation?Thanks.
> WHAT ?> You can't even find things to occupy yourself for 3> days and you think you need a vacation ?> LOL.Unless I hit rock bottom and spend a day drinking beer in my tub I dont see how 3 bored days at home = a vacation, lol.
> Nice,
> It seems that my thread is a chatting board. : )
> Could you guys tell me what is encapsulation?
> Thanks.
Read as much from google as reading in our thread and then you would likely understand encapsulation. Have you tried to look up anything on encapsulation ? If not why should we then ? If you have looked something up what doesn't make sense ?
I'm going to give you a big up, Crpes. Rather than asking
people to spoon feed you, why not look things up on Wikipedia?
They even have a search box. If you enter encapsulation,
it takes you to a disambiguation page:
http://en.wikipedia.org/wiki/Encapsulation
And the first choices are for Computer Science.