Sumali sa IDNStudy.com at makakuha ng mabilis at maaasahang mga sagot. Ang aming komunidad ay nagbibigay ng eksaktong sagot upang matulungan kang maunawaan at malutas ang anumang problema.

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.