Java MCQ - English
Which of the following can be operands of arithmetic operators?
Home | Discussion ForumWhich of the following can be operands of arithmetic operators?
Numeric
Boolean
Characters
Both Numeric & Characters
Answer : D
View More Related Question
1) Which of these statements are incorrect?
Assignment operators are more efficiently implemented by Java run-time system than their equivalent long forms.
Assignment operators run faster than their equivalent long forms.
Assignment operators can be used only with numeric and character data type.
None
View Answer
2) If a and b are integers, then for a=14 and b=4 what will be the value of expression a/b.
3) Select from among the following character escape code which is not available in Java.
4) When the operators are having the same priority, they are evaluated from ………………………….. in the order they appear in the expression.
5) What will be the output of the above fraction of code ?int ++a = 100 ;
System.out.println( ++a ) ;
100
Displays error as ++a is not enclosed in double quotes in println statement
Compiler displays error as ++a is not a valid identifier
None of these
View Answer