Shared Flashcard Set

Details

Core Java Qs II
n/a
14
Computer Science
Undergraduate 1
06/20/2013

Additional Computer Science Flashcards

 


 

Cards

Term

How do you get the param from a properites file?

(Hint: 4)

Definition

1. Have a properites file made.

2. Impl a Properties class.

3. Use FileInputStream to load file.

4. Use the Properties load() to obtain data.

Term
What is the difference between heap and stack?
Definition

- Stack memory is used to store local variables and function call.

- Heap memory is used to store objs in Java.

Term
What is Heap memory?
Definition
A place in memory where your dynamically allocated objs live; such as when you use the new operator. You can allocate a block or free it at any time.
Term
What is Stack memory?
Definition

Memory set aside as scratch space for a thread to execute. When a function is called, a block is reserved (on top) of the stack for local variables. When the function returns, the block becomes unused can can be resued for the next function called.

It is also LIFO.

Term
What is a Java Bean?
Definition
A reusable software component for Java.
Term
What is a static block/initializer?
Definition
It is a block of code to be executed when the class is loaded/initialized.
Term
What happens when you run javac in Command Prompt?
Definition
It creates a .class filetype, which is a binary file.
Term
What datatype is used for monetary value?
Definition
Currency
Term
What is the difference between JDK and JRE?
Definition

- JDK(Java Development Kit): use to develop Java based software.

- JRE(Java Runtime Enviroment): an implementation of the JVM, which executes Java Programs.

Term
What is pass-by-value?
Definition
Means the called functions parameter will be a copy of the callers passed arguement.
Term
What is pass-by-reference?
Definition
Means the called functions' parameters will be the same as the callers passed arguments (not the value, but the identity).
Term
What is deadlock in Threading?
Definition
Where two threads cannot procede further.
Term
What is the difference between Exception and Error?
Definition

- Error: indicates a serious problems that a reasonable application should not try to catch.

- Exception: indicates conditions that a reasonable application might want to catch.

Supporting users have an ad free experience!