Test 2 Flashcards
Software development 1950-60s vs now
More user friendly now, better documented, less cryptic, teamwork, more emphasis on readability/reusability than efficiency
Software applications
Word processing, AI, Databases, Internet/email, games, graphics, etc
Software development tools
Editor=write source code, compiler=translated to object, linker=converts object modules into executable program, debugger=finds logical mistakes
Java’s unique hybrid system
Uses compiler to covert source code to byte code (for platform independent Java Virtual Machine) and interpreter to convert byte code to object code
Java diagram steps
Editor (write source code)->hello.java (source)->compiler->hello.class (byte)->execute to network->interpreter (on different platforms)
JDK
Java development kit (install first, contains Java files) *command-line tools, not GUI
1 nibble
4 bits
1 byte
8 bits (256 combos)
2 bytes have…
256*256= 65,536 combos
How do you covert base-10 to binary?
Write out 8 spaces labelled 128, 64, 32, 16, 8, 4, 2, 1. Find the highest power of 2 that divides into the given number and subtract it from that number. Place that # on its space. Continue subtracting powers of 2 until reaching zero. Fill in blank spaces with 0s
How to convert binary to decimal (base-10)?
Write out the powers of 2 under each digit. Add up the ones with a 1 in the space.
When adding/subtracting binary, what is 1, 2, and 3?
1=01, 2=10, 3=11
JVM
Executes any program compiled into Java byte code
4 equipment functions of a computer
Processing, storage, input, output
Parts of JDK
Javac (compiler) java (interpreter) appletviewer (tests applets w/o browser) javadoc (generate HTML documentation “docs” from source) jar (packs classes into jar files/packages)