| Java is a general-purpose, object-oriented, high-level programming language with several features that make it ideal for web-based development | 1 | true-false | True | | Java |
| A Java program is first compiled into processor-dependent byte codes, then the byte codes are interpreted at run time by the Java Virtual Machine | 1 | true-false | False | | Java |
| A byte holds 8 binary digits | 1 | true-false | True | | Java |
| The Java Runtime Environment (JRE) is a set of software tools for development of Java applications. It combines the Java Virtual Machine (JVM), platform core classes and supporting libraries | 1 | true-false | True | | Java |
| A CPU understands only binary and hexadecimal numbers | 1 | true-false | False | | Java |
| A bit can hold up to 16 binary digits | 1 | true-false | False | | Java |
| In Java, there are different types of variables, but all types are Objects | 1 | true-false | False | | Java |
| The float and decimal types are equivalent | 1 | true-false | False | | Java |
| Every variable must be given a name and a data type before it can be used. | 1 | true-false | True | | Java |
| Java supports eight different primitive data types, including byte and Boolean | 1 | true-false | False | | Java |
| Strings are objects of Java’s String Class | 1 | true-false | True | | Java |
| The + operator can be used between strings to add them together to make a new string OR you can use the concat() method to concatenate two strings | 1 | true-false | True | | Java |
| A String in Java is an object, which contain methods that can perform certain operations on strings | 1 | true-false | True | | Java |
| The slash (/) escape character turns special characters into string characters | 1 | true-false | False | | Java |
| Java’s arithmetic operators are used for performing calculations on objects | 1 | true-false | False | | Java |
| Explicit casting happens when calculations of mixed types are performed, lower-precision operands are converted, or promoted, to the type of the operand that has the higher precision | 1 | true-false | False | | Java |
| User input can be read into our program from the keyboard, but not from a file | 1 | true-false | False | | Java |
| The Scanner class provides methods for reading String and Integer data types | 1 | true-false | False | | Java |
| The Scanner class is defined in the “java.util” package, so we need to include import the package | 1 | true-false | True | | Java |
| In order to use the Scanner class, we must first instantiate a Scanner object and use the System.in input stream, which is tied to the keyboard | 1 | true-false | True | | Java |
| nextLine() Reads a String value from the user | 1 | true-false | True | | Java |
| Scanner scan = new Scanner(System.in); will create a Scanner object | 1 | true-false | True | | Java |
| A class function is a blueprint or prototype from which objects are created | 1 | true-false | False | | Java |
| Constructor declarations are done identically to method declarations | 1 | true-false | False | | Java |
| Constructors are invoked to create objects from the class blueprint | 1 | true-false | True | | Java |
| Non-static variables defined within a class are called instance variables because each instance of the class contains its own copy of these variables | 1 | true-false | True | | Java |
| Any class can only contain a limited number of non-static methods, and each method can be only be called a limited number of times | 1 | true-false | False | | Java |
| Static variables are associated with the class, rather than with any object | 1 | true-false | True | | Java |
| Every instance of the class shares the class variable, which is in one fixed location in memory | 1 | true-false | True | | Java |
| The static modifier should not be used with the final modifier to define constants | 1 | true-false | False | | Java |
| Defined constants cannot be reassigned, and it is a compile-time error if your program tries to do so | 1 | true-false | True | | Java |
| Object-oriented programming allows classes to inherit commonly used state and behavior from other classes | 1 | true-false | True | | Java |
| In the Java programming language, each class is allowed to have one direct superclass, and each superclass has one subclass | 1 | true-false | False | | Java |
| When a class implements an interface, it has the option to provide the behavior published by that interface | 1 | true-false | False | | Java |
| If your class claims to implement an interface, all methods defined by that interface must appear in its source code before the class will successfully compile | 1 | true-false | True | | Java |
| Access level (visibility) modifiers determine whether other classes can use a particular field or invoke a particular method | 1 | true-false | True | | Java |
| If a class has no modifier, it is visible only within its own package | 1 | true-false | True | | Java |
| The modifier known as package-private is identical to the public modifier | 1 | true-false | False | | Java |
| The private modifier specifies that the member can only be accessed in its own class | 1 | true-false | True | | Java |
| When a number of objects are created from the same class blueprint, they each have their own distinct copies of instance variables | 1 | true-false | True | | Java |
| Class variables are referenced by the class name itself | 1 | true-false | True | | Java |
| The Java programming language supports static methods as well as static variables | 1 | true-false | True | | Java |
| The only required elements of a method declaration are the method's return type and a body between braces, {} | 1 | true-false | False | | Java |
| Overloaded methods are differentiated solely by the number of arguments passed into the method | 1 | true-false | False | | Java |
| Because clients cannot access private instance variables of a class, classes usually provide public accessor ( getter ) methods for the instance variables | 1 | true-false | True | | Java |
| Control flow statements break up the flow of execution by employing decision making, looping, and branching, enabling your program to sequentially execute particular blocks of code | 1 | true-false | False | | Java |
| The if-then statement tells your program to execute a certain section of code only if the conditional parameter is not empty | 1 | true-false | False | | Java |
| If the test of the if-then statement evaluates to false, control jumps to the end of the if-then statement | 1 | true-false | True | | Java |
| The while statement continually executes a block of statements only while a counter is smaller than a pre-defined value | 1 | true-false | False | | Java |
| There is no difference between do-while and while statements | 1 | true-false | False | | Java |
| An array is a container object that holds a fixed number of values of a single type | 1 | true-false | True | | Java |
| The length of an array is established after the array is created | 1 | true-false | False | | Java |
| Each item in an array is called an element, and each element is accessed by its numerical index (starting at 1) | 1 | true-false | False | | Java |
| float arrFloats[]; is a valid declaration of an array of doubles | 1 | true-false | False | | Java |
| arr = new int[10]; creates an array with the numbers from 1 to 10 | 1 | true-false | False | | Java |
| The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified | 1 | true-false | True | | Java |
| ArrayList cars = new ArrayList(); creates a new ArrayList of Strings | 1 | true-false | True | | Java |
| To access an element in the ArrayList, use the get() method and refer to the index number | 1 | true-false | True | | Java |
| To insert an element in the ArrayList, use the set() method and refer to the index number | 1 | true-false | False | | Java |
| To remove an element in the ArrayList, use the remove() method and refer to the index number | 1 | true-false | False | | Java |