Question: a) Briefly introduce class field and instance field in Java. If we are modelling a class City, indicate if the fields area and minimum-area should
a) Briefly introduce "class field" and "instance field" in Java. If we are modelling a class City, indicate if the fields area and minimum-area should be a "class field" or an "instance field".\
b) Based on your student information, answer the following questions: i. Write one statement to declare an array of int variable and initialize it with digits of your student ID number. Name this variable withyour surname. o E.g. use array elements 1, 2, 3, 4, 5, 6, 7, 8 if your student ID is 12 3 4 5 6 7 8
ii. What is the last index number of the above array?
c) Given the following expressions (with 3 int operands a,b, c of values 1, 2, 3 respectively), identify which operator is the second to be evaluated in each expression and determine the evaluated result value of this second operator. i. a+b*c%b / c ii. a>c %b || true iii. true&&b ! =a+c/b
Write the answer on the below table
| The second operator to be evaluated | Evaluated value of the second operator | |
| i. | ||
| ii. | ||
| iii. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
