1. Write two types of arithmetic operators.
2. Write two operators used in strings
3. Which property specifies the space between two lines of the text?
4. Which statements provide a compact way to perform multiple tests on a condition.
Answers
Explanation:
1. What are the types of arithmetic operators?
Ans:- These operators are + (addition), - (subtraction), * (multiplication), / (division), and % (modulo). The following table summarizes the binary arithmetic operations in the Java programming language.
2. Write two operators used in strings
Ans:- There are two string operators. The first is the concatenation operator ('.'), which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator ('.='),
3. Which property specifies the space between two lines of the text?
Ans:-Spacing Tab. Explanation: The Spacing tab enables you to specify the vertical spacing between the lines in a paragraph, as well as between paragraphs within a single object.