This topic contains a solution. Click here to go to the answer

Author Question: What is wrong in the following program?class Test { public static void main (String[] args) { try ... (Read 30 times)

jayhills49

  • Hero Member
  • *****
  • Posts: 559
What is wrong in the following program?

class Test {
public static void main (String[] args) {
try {
System.out.println("Welcome to Java");
}
}
}

◦ You cannot have a try block without a catch block or a finally block.
◦ A method call that does not declare exceptions cannot be placed inside a try block.
◦ You cannot have a try block without a catch block.
◦ Nothing is wrong.


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by jayhills49 on May 6, 2020

amandanbreshears

  • Sr. Member
  • ****
  • Posts: 320
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




jayhills49

  • Member
  • Posts: 559
Reply 2 on: May 6, 2020
:D TYSM


cici

  • Member
  • Posts: 325
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

IgA antibodies protect body surfaces exposed to outside foreign substances. IgG antibodies are found in all body fluids. IgM antibodies are the first type of antibody made in response to an infection. IgE antibody levels are often high in people with allergies. IgD antibodies are found in tissues lining the abdomen and chest.

Did you know?

Only 12 hours after an egg cell is fertilized by a sperm cell, the egg cell starts to divide. As it continues to divide, it moves along the fallopian tube toward the uterus at about 1 inch per day.

Did you know?

The tallest man ever known was Robert Wadlow, an American, who reached the height of 8 feet 11 inches. He died at age 26 years from an infection caused by the immense weight of his body (491 pounds) and the stress on his leg bones and muscles.

Did you know?

Autoimmune diseases occur when the immune system destroys its own healthy tissues. When this occurs, white blood cells cannot distinguish between pathogens and normal cells.

Did you know?

Anti-aging claims should not ever be believed. There is no supplement, medication, or any other substance that has been proven to slow or stop the aging process.

For a complete list of videos, visit our video library