






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







โโ Debugging Answer: Locating and repairing all syntax errors is part of the process of ____ a program. โโ Procedures Answer: ____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term "method." โโ Encapsulation Answer: ____ refers to the hiding of data and methods within an object. โโ Polymorphism Answer: ____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context. โโ Applets Answer: Programs that are embedded in a Web page are called Java ____.
โโ Arguments Answer: ____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the information to perform its task or carry out its purpose.A โโ access specifier Answer: A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class. โโ Static Answer: In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist. โโ Two forward slashes Answer: Line comments start with ____. โโ DOS Answer: In a ____ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses, you type cd MyClasses and press Enter. โโ Java language interpreter
โโ Simplest Answer: It is best to use the ____ available text editor when writing Java programs. โโ Hello, World! Answer: It is a tradition among programmers that the first program you write in any language produces "____" as its output. โโ Java Answer: When you run a Java application using the ____ command, do not add the .class extension to the filename. โโ Class path Answer: If you receive an error that states, "Exception in thread 'main' java.lang.NoClassDefFoundError," when you try to execute the application, you probably do not have your ____ set correctly. โโ Public Answer: { public static void main(String[] args) { System.out.println("First Java application");
Given the above code, which item identifies the access specifier? Question options: โโ First Answer: public class First { public static void main(String[] args) { System.out.println("First Java application"); } } Given the above code, which item identifies the name of the class? โโ Void public class First { public static void main(String[] args) { System.out.println("First Java application"); } }
โโ False Answer: A Java identifier can contain only letters, digits, ampersands, or number signs. โโ True Answer: You must use the Java interpreter to translate the bytecode into executable statements before running a Java application. โโ False Answer: When you issue the command to compile a class containing errors, the Java compiler does not produce any error messages. You will first need to run the class in order to see error messages. โโ False Answer: Logic errors are easily identified when a program is compiled. โโ True Answer: Although not a requirement, it is Java standard that class identifiers begin with an uppercase letter and use other uppercase letters to improve readability. โโ True
Answer: A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines. โโ True Answer: Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement. โโ False Answer: Question 10 Unsaved Using the void keyword in the main() method header indicates that a value will be returned by the main() method is called. โโ machine language Answer: the most basic circuitry-level computer language which consists of on and off switches โโ Java Virtual Machine Answer: Java does not execute instructions on a computer directly, but rather on the ____. โโ Syntax Answer: The rules of a programming language constitute its ____.
โโ import Answer: Using a(n) ____ statement, Java allows you to access built-in classes that are contained in a group of classes called a package. โโ semicolon Answer: All Java programming statements must end with a ____. โโ parentheses Answer: Arguments to methods always appear within ____. โโ API Answer: The Java ____ contains information about how to use every prewritten Java class, including lists of all the methods you can use with the classes. โโ recompile Answer: When you run your program you don't see evidence of the changes you just made to it. You realize that you forgot to ____ the program. โโ comments Answer: Non-executing program statements that provide documentation are called program ____.
โโ line, block Answer: Java supports three types of comments: ____, ____, and javadoc. โโ compile, interpret Answer: After you write and save a Java application file, you ____ and then ____ it. โโ Java Answer: The command to execute a compiled Java application is ____. โโ .java Answer: You save text files containing Java source code using the file extension ____. โโ