midterm_questions -...

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

View Full Document Right Arrow Icon
1) Difference between Java application and java applet? Application: standalone Applet: in the web 2) If you create a class, what’s the name? Class.java 3) How do u use a one line comment in java? //  one-line comment /*  Multi line comment */ What blocks lines of statements:      { } What ends a statement:      ; 4) Declaring a variable:     int num;     int num2=50; Declare variable once and use many  -   Do – while at least execute loop once. 5) What makes constructor method different than other class methods? 1) There is no return type 2) The name of the method is the name of the class. What’s needed after each method name even if there’s no argument:      ()   What type is Java: Compiled and Interpreted 6) Put the following in order
Background image of page 1

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

View Full DocumentRight Arrow Icon
D B A C A) Byte Code (.class) B) Compiler (Eclipse) C) Interpreter (JVM) D) Source Code (.Java) 7) int i=1 ,    j = 2,           k=3,        m=2 a) I ==1   T b) c)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/14/2010 for the course ITP 109x taught by Professor Trinagregory during the Spring '08 term at USC.

Page1 / 6

midterm_questions -...

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