Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is operator precedence?
Think about which operations are calculated first.
True or False: Associativity tells us the order of different operators in a calculation.
Consider what happens when two operators share precedence.
What does operator precedence determine?
Think back to how different operations can yield different results!
True or False: Type casting is not necessary in Java.
Consider cases where data types must be aligned.
Write an expression using at least three different operators and calculate the result. Explain each step.
Break it down step by step.
You have a variable double a = 9.5; how would you convert it to an integer and what would the result be? Provide the code.
Remember how explicit casting works!
5 more questions in this section. Enroll free to practise them all.
Enroll free