Describe the following: main(), class, identifiers, tokens, Variable.
Answers
Answer:
main:- This is the name of java main method. It’s fixed and when we start a java program, it looks for the main method.
A class--the basic building block of an object-oriented language such as Java--is a template that describes the data and behavior associated with instances of that class. ... When you instantiate a class you create an object that looks and feels like other instances of the same class.
Identifiers--An identifier is a sequence of one or more characters. The first character must be a valid first character (letter, $, _) in an identifier of the Java programming language, hereafter in this chapter called simply “Java”.
Tokens--Java tokens are smallest elements of a program which are identified by the compiler. Tokens in java include identifiers, keywords, literals, operators and, separators.
Variable:-A Java variable is a piece of memory that can contain a data value. A variable thus has a data type. Data types are covered in more detail in the text on Java data types.
A Java variable is a piece of memory that can contain a data value. A variable thus has a data type. Data types are covered in more detail in the text on Java data types.Variables are typically used to store information which your Java program needs to do its job.
Answer:
main:The main function is generally the first programmer-written function that runs when a program starts, and is invoked directly from the system-specific initialization contained in the runtime environment.
class:A class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods).
identifiers:An identifier is a string of alphanumeric characters that begins with an alphabetic character or an underscore character that are used to represent various programming elements such as variables, functions, arrays, structures, unions and so on.
tokens:Tokens are the smallest elements of a program, which are meaningful to the compiler. The following are the types of tokens: Keywords, Identifiers, Constant, Strings, Operators, etc.
variables:A variable is a value that can change, depending on conditions or on information passed to the program. Typically, a program consists of instruction s that tell the computer what to do and data that the program uses when it is running.
Explanation:
plz mark me as a brainlist