Java Worksheet Quiz

Ace your homework & exams now with Quizwiz!

What is an instance variable?

Attributes of objects are specified by the class's instance variables

What is encapsulation?

Classes encapsulate attributes and member functions into objects. Implementation details are hidden within the objects themselves. You are packaging behaviors and attributes together into one object.

What is a data hierarchy?

Data items that are processed by computers form a data hierarchy that becomes larger as you move up the levels.

What does JVM do?

Each system is emulated through the Java Virtual Machine (JVM). JVM will run the code for that specific platform.

What does EE stand for in Java?

Enterprise Edition

What does HTML stand for?

Hypertext Markup Language

What does IDE stand for?

Integrated Development Environment

What does the "javac" program do?

It compiles a Java program in the command prompt

What is Moore's law?

It was named after Gordon Moore (cofounder of Intel). In summary, it says that the cost of computing has decreased rapidly. Every year or two the capacities of computers have doubled with no change in cost.

What does JVM stand for?

Java Virtual Machine

What are the three general types of programming languages?

Machine Languages - All numeric Assembly Language High-Level Languages - Python, C, C++, Java

What does ME stand for in Java?

Micro Edition

What happened in the mid-1990s to encourage the development of Java programs?

More normal people discovered the internet. The entire United States and the rest of the world discovered the internet. Once the internet happened, the World Wide Web started using Java. It was developed primarily with the rise of the World Wide Web.

What is information hiding?

Objects may communicate with one another, but they don't know how other objects are implemented. Implementation details are hidden in the objects themselves.

What does SDK stand for?

Software Development Kit

What does SE stand for in Java?

Standard Edition

What company created the Java language?

Sun Microsystems

What is inheritance?

When a new class absorbs the characteristics of an existing class while still customizing them. It allows objects to be created quickly and conveniently.

What is software reuse?

You can reuse a class many times to build objects. You can reuse the same car blueprints to build many cars.

What is a method call?

You send messages to an object. Each message is implemented as a method call that tells a method of the object to perform its task.

Performing a task requires _

a method

A program unit called a _ houses the set of _ that perform that _ tasks

class, methods, class's

Almost any _ can be reasonably represented as a software _ in terms of _ (ex. Name, color size) and _ (calculating, moving, etc)

noun, object, attributes, and behaviors

The Javac program produces a file with what extension?

.class

What extension do Java files end with?

.java

What are the five levels of a data hierarchy?

1. Bits 2. Characters 3. Fields 4. Records 5. Files

Every computer has the following six sections

1. Input Unit 2. Output Unit 3. Memory Unit 4. Arithmetic and Logic Unit (ALU) 5. Central Processing Unit (CPU) 6. Secondary Storage Unit

What is the first step in creating a Java program?

1: Creating a program A programmer edits a file with an editor program. You type a Java program using the editor, make any necessary corrections, and save the program on a secondary storage device such as a hard drive.

What is the second step in creating a Java program?

2: Compiling a Java Program into Bytecodes You use the javac to compile a program. The JVM translates Java source codes into bytecodes.

What is the third step in creating a Java program?

3: Loading a program into memory The JVM places the program into memory. This is known as loading.

What is the fourth step in creating a Java program?

4: Bytecode Verification The classes are loaded and the bytecode verifier examines the bytecodes to assure their validity and ensure that they don't violate any of Java's security restrictions.

What is the fifth step in creating a Java program?

5: Execution The JVM executes the program's bytecodes thus performing the actions specified by the program.

What is instantiation?

The process of building an object of a class before the program can perform the tasks that the class's member functions define. Ex: Someone must build a car from its engineering drawings before you can actually drive the car.

What is a kernel?

The software that contains the core components of the operating system.

What are the Java APIs?

They are also known as Java class libraries. They are collections of existing classes and methods in the Java class libraries.

What are bytecodes?

They are executed by the JVM and they represent the tasks to execute in the execution phase

What is an operating system?

They are software systems that make using computers more convenient for users, application developers, and system administrators. They allow each application to execute safely, efficiently, and concurrently with other applications.

What is a compiler?

They convert High-Level language programs into machine language.

What is an assembler?

They convert early assembly-language programs to machine language at computer speeds.

What is an interpreter?

They execute High-level language programs directly, which makes them faster than a compiler.

What was the original key goal of Java?

To create a new language that would allow consumer electronic devices to communicate with each other


Related study sets

Quiz 9.1: Understanding the Self and Others

View Set

L201 Federal and State Courts READING

View Set

Chapter 45 - Prep U (Upper GI disorders)

View Set

NRS 3015: Exam #1 Practice Questions

View Set

CDC 3D151 Client Systems Journeyman Volume 2. Voice Systems Fundamentals

View Set

Biology: Chapter 9 - Sexual Reproduction and Meiosis

View Set