Chapter 2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What is a syntax error?

Errors that violate the rules of the language and are caught by the compiler

What are the two principles of OOP?

Event-driven programs and Inheritance. OOP is a world of active objects that have their own memory. Each object has its own set of methods which can change the objects state or send messages to other objects.

What does GUI stand for?

Graphical User Interface

What does a debugger do?

Help to analyze the program at specific points in the program and helps the programmer identify the error

What does IDE stand for?

Integrated Development Environment. Has build in tools such as an editor, compiler, appletviewer, debugger, and others. (BlueJ)

A software project includes...

Interaction with customers, general design, prototyping, coding and debugging, code optimization, documentation, testing, tech support

What does a compiler do?

It analyzes the source code and generates object code (saved as object module)

What can an object do?

It can 1) Create other objects; 2) Call another object's methods

What does a linker do?

It converts multiple object modules (groups of source codes) into one executable program

What does an assembler do?

It converts the text of a program (assembly language) to machine code (used by CPU)

What is the text of a program referred to as?

Source code (Stored in Source File)

What is the main method?

Starts program. public static void main (String[] args)

What is the benefit of OOP?

Team development, reusable software, easy GUI and multimedia programming

What is the difference between a compiler and an interpreter?

The interpreter does not generate an object code and instead just goes ahead an executes the program each time. The exec program is also slower.

What does an editor do?

Used to write the text of a program

What is a logic error?

Caused by flawed logic in the program. They are not caught by the compiler but show up at run-time. They can cause an exception or produce incorrect results

What are event-driven programs?

Allow programs to simulate simultaneously and methods are called automatically in response to events. Console programs cannot do this.

What is bytecode?

It is not object code and not source code. It is useful because it protects the confidentiality as it can not be read, it is platform-independent, it is faster to interpret than source, and browsers can scan for security violations.

What does java use to execute code?

It uses a compiler/interpreter approach by compiling the program into bytecode and interpreted to the CPU. The bytecode can only be read by the Java Virtual Machine (JVM).

What is Inheritance?

Let's the programmer redifine the scope of a class. A subclass, dog, extends a superclass, animal. Diagrams are created with clear hierarchies of general classes above specific classes

What does style do?

Make the code easier to read and understand


संबंधित स्टडी सेट्स

CompTIA Network+ Final Assessment

View Set

Language in the United States Exam 2

View Set

6th gr Religion - The Events of Moses & the Burning Bush (Mrs. R's class)

View Set