Sumali sa IDNStudy.com at tuklasin ang komunidad ng mga taong handang tumulong. Anuman ang kahirapan ng iyong mga tanong, ang aming komunidad ay may mga sagot na kailangan mo.

Why do we need to know and understand first the syntax in developing the Java program?
How do find importance of the utility Scanner in Java programming?


Sagot :

Answer:

  • We need to know and understand first the syntax in developing Java program because basic syntax represents the fundamental rules of a programming language. Without these rules, it is impossible to write functioning code. Every language has its own set of rules that make up its basic syntax.
  • The importance of the utility scanner in Java programming is it is a class in java utility package used for obtaining the input of the primitive types like int, double, etc. and strings. It is the easiest way to read input in a Java program, though not very efficient if you want an input method for scenarios where time is a constraint like in competitive programming.