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

Author Question: Which of the following is true regarding Java syntax and semantics? (Read 327 times)

krzymel

  • Hero Member
  • *****
  • Posts: 548

Question 1

Which of the following is not syntactically legal in Java?
◦ public class Foo
◦ System.out.println("Hi");
◦ { }
◦ s t a t i c main(String[ ] args)
◦ only System.out.println("Hi");  is legally valid, all of the rest are illegal

Question 2

Which of the following is true regarding Java syntax and semantics?
◦ a Java compiler can determine if you have followed proper syntax but not proper semantics
◦ a Java compiler can determine if you have followed proper semantics but not proper syntax
◦ a Java compiler can determine if you have followed both proper syntax and semantics
◦ a Java compiler cannot determine if you have followed either proper syntax or semantics
◦ a Java compiler can determine if you have followed proper syntax and can determine if you have followed proper semantics if you follow the Java naming convention rules


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by krzymel on Aug 30, 2020

Danny Ewald

  • Sr. Member
  • ****
  • Posts: 332
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



Francis Teo

  • Newbie
  • *
  • Posts: 1
Thank You

this is skem btw, they force to sign up



 

Did you know?

According to the American College of Allergy, Asthma & Immunology, more than 50 million Americans have some kind of food allergy. Food allergies affect between 4 and 6% of children, and 4% of adults, according to the CDC. The most common food allergies include shellfish, peanuts, walnuts, fish, eggs, milk, and soy.

Did you know?

Glaucoma is a leading cause of blindness. As of yet, there is no cure. Everyone is at risk, and there may be no warning signs. It is six to eight times more common in African Americans than in whites. The best and most effective way to detect glaucoma is to receive a dilated eye examination.

Did you know?

Adults are resistant to the bacterium that causes Botulism. These bacteria thrive in honey – therefore, honey should never be given to infants since their immune systems are not yet resistant.

Did you know?

If all the neurons in the human body were lined up, they would stretch more than 600 miles.

Did you know?

Human kidneys will clean about 1 million gallons of blood in an average lifetime.

For a complete list of videos, visit our video library