Question: In java 1.order the following from highest order 1 of precedence to lowest 5. assignment = parentheses () addition +, subtraction - multiplication *, division
In java
1.order the following from highest order 1 of precedence to lowest 5.
assignment =
parentheses ()
addition +, subtraction -
multiplication *, division
comparison ==,!=,<,<=,>,>=
2.A Java class can contain which of the following?
a)Only Methods
b)Only Data
c)Objects
d)Methods and Data
e)All of the above
3.Which of the following correctly declares and initializes an instance of the class String (multiple answers are correct):
a)String s = Java is good;
b) String s;
c) String s = Java is good;
d) String s = new.String(Java is good);
e) String s = Java + is + good;
f)String s = new String(Java is good);
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
