What is wrong in the following program?
```
public class Test {
public static void main (String[] args) {
try {
System.out.println("Welcome to Java");
}
}
}```
a. You cannot have a try block without a catch block.
b. You cannot have a try block without a catch block or a finally block.
c. A method call that does not declare exceptions cannot be placed inside a try block.
d. Nothing is wrong.
b
You might also like to view...
The preferred passdb backend introduced in Samba 3.4.0 is ____.
A. smbpasswd B. tdbsam C. passwd D. passsmb
Ashley wants to use wireless devices while working on her desktop computer. She buys a new wireless keyboard and a wireless mouse that are compatible with her existing computer system. Which of the following wireless standards should she use to connect the devices to her computer?
A. ?Bluetooth B. ?WiBee C. ?Ethernet D. ?Token ring