

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A concise overview of fundamental java programming concepts, including data types, operators, control flow, and object-oriented programming principles. It defines key terms and illustrates them with simple examples, making it a useful resource for beginners learning java.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Double - โโโ A Java reserved word that represents a primitive floating point numeric type, stored using 64 bits in IEEE 754 format. Ex. 4. in - โโโ A java reserved word for a primitive data type, stored using 32 bits in two's complement format. Ex. 5 Boolean - โโโ A Java reserved word for a logical primitive data type that can only take the values "True" or "False". string literal - โโโ A primitive value used in a program. Ex. ("Hello") casting - โโโ Most general form of converting in Java Ex. dollars = (in) money narrowing conversion - โโโ A conversion from one data type into another in which information could be lost. Converting from "double" to an "in" is a narrowing conversion strongly typed - โโโ Assigned values must correspond to the declared type. // - โโโ Comments a line of code in Java that will not be run with the program. More of a side note. //Hello % - โโโ Remainder operator. Operator Precedence Hierarchy - โโโ The order in which operators are evaluated in an expression. primitive data - โโโ Characters with letters, or numbers: in, double, Booleans constant - โโโ A value that cannot be changed. Used to make more code more readable and to make changes easier. Defined in Java using the "final" modifier. final - โโโ A Java reserved word that is a modifier for classes, methods, and variables. A "final" variable is a constant void - โโโ A Java reserved word that indicates that no value is returned. main - โโโ Method that appears within a class, it invokes other methods.
System.out.println() - โโโ Displays text for the user: Ex. System.out.println("Hello") Hello public - โโโ A Java reserved word for a visibility modifier. A public class or interface can be used anywhere. A public method or variable is inherited by all subclasses and is accessible anywhere. private - โโโ A Java reserved word for a visibility modifier. Private methods and variables are NOT inherited by subclasses and can only be accessed in the class in which they have been declared. static - โโโ A Java reserved word that describes methods and variables. A static method is also called a class method and can be referred without an instance of the class. A static variable is also called a class variable and is common to all instances of a class; Data and methods can be used without instantiation of their own class. Assignment Statement - โโโ Uses the equal sign to give the object property on the left of the equal sign the value on the right of the equal sign. Variable - โโโ An identifier in a program that represents a memory location in which a data value is stored. Escape Sequence - โโโ In Java characters beginning with the backslash character (), used to indicate a special situation when printing values. For example, the escape sequence \t means that a horizontal tab should be printed; Special way to represent characters in a String. class - โโโ 1) A Java reserve word used to define a class