Lecture11 - Java Programming 3e Concepts and Techniques...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Java Programming, 3e Concepts and Techniques Chapter 3 Manipulating Data Using Methods (III) ICTN 2730 Lecture 11 02/06/2008
Image of page 1

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

View Full Document Right Arrow Icon
Chapter 3: Manipulating Data Using Methods 2 Assignments Read Chapter 3 and lecture notes. Homework 2 sample solutions have been posted on Blackboard. Homework 3 is due tonight. Do not be stingy when answering discussion questions. Feel free to ask questions.
Image of page 2
Chapter 3: Manipulating Data Using Methods 3 Quiz 01 A(n)____________ is a program that executes the machine language instructions to produce results, or answers. interpreter (page 30) java.exe/java is the interpreter for Java The main reason why Java is popular is that it is _____. portable Compile once, run anywhere. Condition: JVM/JRE must be installed.
Image of page 3

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

View Full Document Right Arrow Icon
Chapter 3: Manipulating Data Using Methods 4 Quiz 01 The Java SDK includes all the following tools except ____. class libraries We need SDK to compile/develop Java programs The Java 2 Runtime Environment contains all the following tools except the ____. Java Compiler We need JRE to execute Java programs (bytecode). Table 1-5 on page 30
Image of page 4
Chapter 3: Manipulating Data Using Methods 5 Quiz 01 The block comment in a Java program will be ignored during execution but not during compilation. false The block, doc, and line comments are ignored during compilation and execution. “Commenting out” a piece of code is like removing the code. e.g. // System.out.println(4 * 3 / 6 – 4 + Math.pow(7,2));
Image of page 5

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

View Full Document Right Arrow Icon
Chapter 3: Manipulating Data Using Methods 6 Quiz 01 A(n) ____ is a piece of data received by a method to help the method perform its operation. (Page 68, Figure 2-22) parameter e.g. in public static void main(String[] args), the parameter here is args, the data type of the parameter is String[]. An argument is data to be sent to a method. e.g. String username = System.getProperty("user.name" ); the string “user.name” is an argument sent to the getProperty() method.
Image of page 6
Chapter 3: Manipulating Data Using Methods 7 http://java.sun.com/j2se/1.5.0/docs/api/java/lang/S ystem.html#getProperty(java.lang.String) More information about the getProperty() method in Java API documents: public static String getProperty ( String key) Gets the system property indicated by the specified key.
Image of page 7

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

View Full Document Right Arrow Icon
Image of page 8
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