1.2 & 1.3 Flashcards
is an object for sending output to the screen.
System.out
is a method to print whatever is in parentheses to the screen.
println
the object performs an action when you _____ or _____ one of its methods.
invoke or call
the person who interacts with the program is called…
the user
T or F: A java program consists of one or more classes, which must be compiled before running the program
true
T or F: you need to compile classes that accompany Java (e.g. System and Scanner)
false, do not need to compile
Each class should be in a seperate file and ending with _____
.java
T or F: the name of the file doesn’t have to be the same as of the class
F, it has to be the same.
IDE is short for
integrated development enviroment
What is a IDE?
it is used to combine a text editor with commands for compiling and running java programs.
T or F: after the java program is compiles, the byte-code version of the program will have a different name.
false, it will have the same name, but the ending is changed from .java to .class
T or F: A java program can involve any number of classes.
true
A java program can involve any number of classes, but the class to run will contain the words….. somewhere in the file
public static void main(String[] args);
there are two kinds of java programs..
applications and applets
applications are meant to be run on…..
your computer
applets are meant to be run on…
the internet
T or F: Applets are regular programs.
F, they are little applications. Applications are regular programs.
T or F: Applets are not supported by many web browsers today.
true, as they are in favor of HTML5 and JavaScript.
they are also deprecated by Oracle.
A _______ is a library of classes that have been defined already.
package
Give an example of a package (library) and a class from the package
import java.util.Scanner;
-package: java.util
-class: Scanner
the items inside paranthesises are called ______ and provide the info needed by methods.
arguments