Computer Applications
State which access specifier is less restrictive.

- private
- protected
- default
- public
Related Questions
A girl wanted to calculate the sum of two numbers stored as a and b multiplied by 7. Select the appropriate Java expression.
- a + b*7
- 7*a + b
- (a + b)*7
- a + 7*b
The sum of
a[1]anda[3]in the arrayint a[] = {20, 40, 60, 80, 100}is:- 80
- 100
- 120
- 60
The AMB hotel gives the amount to be paid by the customer as an integer, which of the following Math method rounds off the bill in decimals to an integer?
- Math.round()
- Math.pow()
- Math.ceil()
- Math.abs()
Identify which of the following leads to an infinite loop.
- for(i = 10; i != 0; i--)
- for(i = 3; i <= 30; i += 3)
- for(i = 1; i >= 1; i++)
- for(i = 1; i >= 0; i--)