HW1 - points) 6. What is a Java block? (2 points) 7. What...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COP 3502: HW 1 – CHAPTER 1 DUE DATE: JAN. 20 1. The compiler generates bytecode even if the program has syntax errors. (1 point) A . True B . False 2. The _________ loads Java bytecode to the memory. (1 point) A . Java virtual machine B . class loader C . bytecode verifier D . Java compiler 3. Four bytes have ________ bits. (1 point) A. 64 B . 32 C. 8 D. 16 4. The command to compile a class in the file Test.java is (1 point) A. javac Test.java
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
B. java Test C. java Test.java D. javac Test E. JAVAC Test.java 5. Describe the role of JVM in generating and executing programs. (2
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: points) 6. What is a Java block? (2 points) 7. What is the name of the method required for all Java applications? What is its signature? (2 points) 8. The following program is wrong. Identify and fix its problem. (5 points) public HelloWorld { public static main ( String ) { System . out ( Hello, World ); } } 9. Write a program that displays the following: (5 points) ==Welcome to Java== ----Programming is fun --- ***End of Homework 1 ***...
View Full Document

This note was uploaded on 02/15/2012 for the course COP 3502 taught by Professor Staff during the Spring '12 term at University of Florida.

Page1 / 3

HW1 - points) 6. What is a Java block? (2 points) 7. What...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online