Answer:
computer is
an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.
Given that,
Mass of the block, m = 2700 g
Let the dimensions of the block are 20 cm, 5 cm and 10 cm.
To find,
The density of the granite.
Solution,
Let d is the density of the granite. We know that the density of an object is equal to the mass per unit volume. So,
d = m/V
or

So, the density of the block is 2.7 m/s².
Answer:
Option (d)
Explanation:
Option (a) the return type of the method specifies the type of the data that is returned for the method calling. The return type can be void if it doesn't return any value. The method return can be int, string and bool etc. So, option (a) is true and it not the correct option.
Option (b) is true it doesn't need any parameters. So, option (b) is not the correct option.
Option (c) is true. If the method has some return type other than void it must return something according to the return type.So, option (c) is not the correct option.
Option (d) is false. Getters and setters methods are used for accessing private variables but the name MUST start with get or set is false. The best practice is to start with get and set but it is NOT a must.
So, option (d) is correct option.
Answer:
import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int numbers[] = new int[3];
System.out.print("Enter first number: ");
numbers[0] = scan.nextInt();
System.out.print("Enter second number: ");
numbers[1] = scan.nextInt();
System.out.print("Enter third number: ");
numbers[2] = scan.nextInt();
scan.close();
Arrays.sort(numbers);
if (numbers[0] == numbers[2]) {
System.out.println("All the numbers are equal");
} else {
System.out.printf("Greatest number: %d\n", numbers[2]);
}
}
}