Java OCA 1Z0-808 - Operators and Statements Exam Questions & Answers 2023/2024
Java OCA 1Z0-808 - Operators and Statements Exam Questions & Answers 2023/2024 operator - ANSWER-A special symbol that can be applied to a set of variables, values, or literals—referred to as operands—and that returns a result. What three types of operators are available in Java? - ANSWER-Unary Binary Ternary Arithmetic operators - ANSWER-+, -, *, /, %, --, ++ How can you change the order of precedence explicitly? - ANSWER-With parentheses. *True or False:* When applying operators to data types, if the two values have different data types then the smaller type is promoted to the larger type - ANSWER-True When applying operators to two data types in which one is an integral and the other floating-point, what does Java do? - ANSWER-Java will automatically promote the integral value to the floating-points value's data type. When smaller data types (byte, short, char) are used with a binary arithmetic operator, what is automatically done? - ANSWER-They are first promoted to int, even if neither operand is an int.
Written for
- Institution
- Java OCA 1Z0-808 - Operators and Statements
- Course
- Java OCA 1Z0-808 - Operators and Statements
Document information
- Uploaded on
- December 16, 2023
- Number of pages
- 13
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
java oca 1z0 808 operators and statements
Document also available in package deal