This site is 100% ad supported. Please add an exception to adblock for this site.

Java Final Exam

Terms

undefined, object
copy deck
ReadLine
gets text from RAM
Appletviewer
To compile an applet you use
Concatation
the process of joining two strings with a + sign
String
When data is initially taken from RAM by the readLine method it is taken as a
Trigger
Example of pressing a button on a web site
true
a try block can have lines that can't cause an exception
java.awt.event
Package is for having the program respond to buttons
JavaScript
A scripting tool, created by Netscape, used to insert code directly into HTML code of a web page
Stream
Data flowing in or out of a program
Event Handler
actionPerformed method is an example of what
java.applet
package that has classes to create an applet
Illegal Identifier
#
A real number
add an integer and a real number you get a
Action Listener
listens for button events in an applet
Object-Oriented Design
An approach to programming in which the data, and the code that operates on the data, are packaged into a single unit
Subclass
When you extend an applet class, you are creating a ______of the Applet class
java.awt
Package for creating user interfaces and painting graphics and images
setBackground(Color.red)
How to set the background color of an image to red
throws IOException
in java.io package what phrase must be in your program
java.util
The date class is contained in this package
System.in
Bits in RAM caused by the user typing
Java.applet
Applet class is in what package
Choice
drop down list of items
Low-Level Language
hard programming - fast processing
.class
In the HTML code the java code must be referred with this extension
.class
When you compile a Java program, a new file is created with this extension
external
a class or method that is not part of the driver class is called
Strongly Typed Language
Language if it checks for potential problems and provides useful error messages
RAD
Refers to the use of prebuilt objects to make program development much faster
Program
A series of step by step instructions that tells a computer exactly what to do
Syntax
The particular set of grammer or rules that specify how the instructions are to be written is called
()
A reference to a method always ends in
JDBC
A java interface that enables applications to execute queries and interact with databases
Compiler
A program that converts a programmer's code to machine language
Instance
An occurrence of a class
Init
Sets the order for objects
Interger.parseInt()
method to convert a String to an interger
new Label("hello")
Label myLabel = new Label("Hello") what is the consrtructor
CheckboxGroup
Allows user to check one box of a group of boxes
Inheritance
A programmer can use a class, along with its functions and data, to create a subclass, which saves time and coding
Secure
programs that are easy to protect from viruses and tampering
java.awt.*;
Label class is in what package
Init
Method that sets the order of objects on a site(applet)
setText
method that allows the program to change the text of an object class type Label
Run Time Error
Program the compiles and runs but does not give you the expected result
SDK
A programming package that enables a programmer to develop applications in Java using the included programming interfaces, programming tools, and documentstion
ShowInputDialog()
Pop-up window shows allows the user to enter text
BufferedReader
Reserves space in RAM for user input
JOptionPane
A class of methods that provide ready-made pop-up boxes
High-Level Language
easier programming - slow processing
Boolean
Data type that can only hold the values true or false
Servlet
A module of Java code that is hosted on a web server
Java.io
BufferedReader class is in what package
getText
Method that allows the program to obtain what the user typed in the TextField
Javax.swing
JOptionPane class is in what package
Subclass
A lower level class
Pixels
The line "g.drawstring("Hello"10,10) the numbers refer to
throws new
when a programmer needs to force the code to go to a catch statement you need the phrase
actionPerformed
When a button is pressed the function that determines the resultant actions is
//
a single line comment
Overloading
Defining more than one method with the same name
Method
Code to perform a service or operation, including tasks such as performing
Satic Method
Can be used without creating an instance of the class
Semi-Colon
Every line od code other than headers and braces must end with
Label
Label myLabel = new Label("Hello") what is the class
ActionListener
Listens for events in an applet
Graphic window only
Drawstring method is for writing text on
Portable
Program that can be run on a variety of platforms other than the one in which it was created
Console
An application that uses a command line interface is called
Message
Object to do something it must receive a
Return Value
The line "public void fun(int x)" the void indicates a
Package
A collection of classes
Robust
Language where programmers can develop programs that do not accidentally corrupt data by overwriting memory
Syntax Error
When you forget to put a semi-colon at the end of a statement you get a a
InputStreamReader
Converts bytes in RAM and converts them to characters
Parsimonious
A language that has a compact set of commands without numerous versions or adaptations of the same command
javax.swing
Package provides lightweight java based components
TextField
Where the user can enter text
Public
Access modifier
Applet
A small program that can be downloaded as part of a webpage
Package
A collection of classes
Polymorphism
Allows an instruction to be given to an object using a generalized rather than specific, detailed
Item Listener
What is needs to implemented in order to allow checkbox cahnges tp be acted on
Implement ActionListener
If you have a button that when pushed commits an action what do you need in the class heading
Windowed
Application uses a graphical interface(GUI) for user input and program output with on-screen elements such as textboxes, buttons, menus and toolbars to support user interaction
java.lang
Package given to you automatically whenever you run a java program
Extends
Indicator for inheritance
Ecapsulation
The capability of an Object to have data(properties) an functionality(Methods) available to the user, without the user having to understand the implementation within the object
Platform Independent
Running programs on Linux, Apple and PC's
Naming Convention
The java standard of capitalizing class names
Programming Language
A set of words, symbols, and codes that enable a programmer to communicate instructions to a computer
index
a number referencing a member of an array
Dos screen only
The println method id for writing text on
INT
A data type
myLabel
Label myLabel = new Label("Hello") what is the object
Symantic Error
If you misspell a keyword you get a
Java Bean
A reusable software component developed in Java
=
assignment statement in Java is

Deck Info

98

permalink