1. Which of the following is the correct way to declare a constant in Java? a) const int x = 5; b) final int x = 5; c) static final x = 5; d) int final x = 5; Answer: b) final int x = 5; 2. Which operator is used to concatenate strings in Java? a) + b) & …
Read more1. What is the correct way to declare a variable in Java? a) int num = 10; b) variable num = 10; c) declare int num = 10; d) num int = 10; Answer: a) int num = 10; 2. Which of these is NOT a valid keyword in Java? a) static b) public c) include d) final Answe…
Read more
Social Plugin