midterm_questions

midterm_questions - 1) Application:standalone...

Info icon This 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
Image of page 1

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

View Full Document Right 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) (k>=10) && (m<4)     F c)
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern