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 339 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?

People with high total cholesterol have about two times the risk for heart disease as people with ideal levels.

Did you know?

For about 100 years, scientists thought that peptic ulcers were caused by stress, spicy food, and alcohol. Later, researchers added stomach acid to the list of causes and began treating ulcers with antacids. Now it is known that peptic ulcers are predominantly caused by Helicobacter pylori, a spiral-shaped bacterium that normally exist in the stomach.

Did you know?

The newest statin drug, rosuvastatin, has been called a superstatin because it appears to reduce LDL cholesterol to a greater degree than the other approved statin drugs.

Did you know?

A serious new warning has been established for pregnant women against taking ACE inhibitors during pregnancy. In the study, the risk of major birth defects in children whose mothers took ACE inhibitors during the first trimester was nearly three times higher than in children whose mothers didn't take ACE inhibitors. Physicians can prescribe alternative medications for pregnant women who have symptoms of high blood pressure.

Did you know?

Limit intake of red meat and dairy products made with whole milk. Choose skim milk, low-fat or fat-free dairy products. Limit fried food. Use healthy oils when cooking.

For a complete list of videos, visit our video library