Beruflich Dokumente
Kultur Dokumente
1. An applet is a special kind of Java program that is designed to be transmitted over the Internet and
automatically executed by a Java-compatible web browser.
2. Bytecode is a highly optimized set of instructions designed to be executed by the Java run-time system,
which is called the Java Virtual Machine (JVM).
3. Java supports multithreaded programming, which allows you to write programs that do many things
simultaneously.
4. The two paradigms that govern how a program is constructed are process-oriented model and object-
oriented programming.
5. Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe
from outside interference and misuse.
6. Inheritance is the process by which one object acquires the properties of another object.
7. Polymorphism (from Greek, meaning “many forms”) is a feature that allows one interface to be used for a
general class of actions.
8. The Java compiler requires that a source file use the .java filename extension.
10. The keyword static allows main( ) to be called without having to instantiate a particular instance of the
class.
11. Java allows two or more statements to be grouped into blocks of code, also called code blocks.
12. Identifiers are used to name things, such as classes, variables, and methods.
15. The keywords const and goto are reserved but not used.
16. Java defines eight primitive types of data: byte, short, int, long, char, float, double, and boolean.
18. There are only two logical values that a boolean value can have, true and false.
20. Hexadecimal constant values are denoted in Java with a leading zero-x, (0x or 0X).
22. Java includes a special ternary (three-way) operator that can replace certain types of if-then-else
statements.
24. The elements in the array allocated by new will automatically be initialized to zero (for numeric
types), false (for boolean), or null (for reference types, which are described in a later chapter).
27. Java’s program control statements can be put into the following categories: selection, iteration, and jump.
28. Selection statements allow your program to choose different paths of execution based upon the outcome of
an expression or the state of a variable.
29. Iteration statements enable program execution to repeat one or more statements (that is, iteration statements
form loops).
32. Beginning with JDK 7, switch expression can also be of type String.
34. The do-while loop always executes its body at least once.
35. Beginning with JDK 5, a second form of for was defined that implements a “for-each” style loop.
36. When a break statement is encountered inside a loop, the loop is terminated and program control resumes
at the next statement following the loop.
37. A continue statement causes control to be transferred directly to the conditional expression that controls the
loop.
40. The data, or variables, defined within a class are called instance variables.
41. The methods and variables defined within a class are called members of the class.
43. If the method does not return a value, its return type must be void.
45. When you do not explicitly define a constructor for a class, then Java creates a default constructor for the
class.
47. Java handles deallocation for automatically; the technique that accomplishes this is called garbage
collection.
48. Sometimes you will want to pass information into a program when you run it. This is accomplished by
passing command-line arguments to main( ).
49. When an overloaded method is invoked, Java uses the type and/or number of arguments as its guide to
determine which version of the overloaded method to actually call.
5. An ________ is a numerical value that uniquely identifies the server on the Internet.
7. Create HTML5 documents by typing HTML5 markup text in a text editor (such as Notepad, TextEdit, vi,
emacs) and saving it with the .html or .htm filename extension.
8. The html element encloses the head section (represented by the head element) and the body section
(represented by the body element).
10. Many start tags have attributes that provide additional information about an element, which browsers use to
determine how to process the element.
13. The most popular image formats used by web developers today are PNG (Portable Network Graphics)and
JPEG (Joint Photographic Experts Group).
14. If a browser cannot render an image, the browser displays the alt attribute’s value.
15. Some HTML5 elements (called void elements) contain only attributes and do not mark up text (i.e., text is
not placed between a start and an end tag).
18. A superscript is marked up using the ________ element, and a subscript is marked up using the ________
element.
19. The least significant heading element is ________ and the most significant heading element is ________.
26. HTML5 comments begin with <!-- and end with ________.
30. HTML5 provides a mechanism, called a form, for collecting data from a user.
31. The method = "get", appends the form data directly to the end of the URL of the script, where it’s visible in
the browser’s Address field.
32. The action attribute in the form element specifies the URL of a script on the web server that will be invoked
to process the form’s data.
33. The input element’s size attribute specifies the number of characters visible in the text field.
34. The input element’s attribute maxlength limits the number of characters input into the text field.
35. The reset input element allows a user to reset all form elements to their default values.
36. The textarea element inserts a multiline text area into the form.
40. The color input type enables the user to enter a color. At the time of this writing, most browsers render
the color input type as a text field in which the user can enter a ________.
41. The ________ attribute allows you to place temporary text in a text field.
42. If you want to bypass validation, you can add the formnovalidate attribute to input type ________.
43. The ________ attribute forces the user to enter a value before submitting the form.
44. The ________ control is typically displayed for the number input type and includes only the valid numbers.
45. The _____ input type enables the user to enter an hour, minute, second and fraction of second.
46. The ________ attribute—used in a single input element on a form—automatically highlights the input
element and, if appropriate, places the cursor in the text field after the browser loads and renders the page.
47. The new HTML 5 input types are ________ on the client side.
49. HTML documents normally contain ________, which, when clicked, load a specified web document.