Java Programming Questions and Answers Verified 100% Correct
Assign a Value to set the data of a variable (involves the equal sign). Class Describes a particular kind of object. It can contain related methods and variables. Double A type of variable (or value) that can contain fractions as well as integers. Declaration A statement that creates a variable, method, or class identifier and its associated attributes but doesn't necessarily allocate storage for variables or define an implementation for methods. int An integer value String Sequence of characters double A real number(64 bytes) float A real number(32 bytes) toUpperCase This method converts a character to uppercase. toLowerCase This method converts a character to lowercase. Algorithm A set of steps that define a process for solving a specific problem. The main( ) Method This gets your Java program running. There must be at least one such method among your classes. if/else public static void main(String [ ] args){ int=17 if(age=17){ Sln("You are too young") } else { Sln("You are old"); } Method Houses the program statements that perform its tasks. instantiation
Información del documento
- Subido en
- 23 de junio de 2023
- Número de páginas
- 3
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas