





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In the course of the Introduction to Jave Programming, we study the basic syntax and the basic program in java. In these lecture slides the key points are:Classes, Methods, Class, Scope, Second Class, Predefined Methods, Similar Commands, Lines of Code, Packaging Multiple, Return a Value
Typology: Slides
1 / 9
This page cannot be seen from the preview
Don't miss anything!






(See: SillySwap.java) When use primitive (int, double) arguments, the value is copied, not linked to the variable If you use a class (anything with new), the variables will be linked (why? Ch 5.2) (See: ClassSwap.java)
I will not be expect perfect terminology usage, but I will explain some of the book's terminology for those who read it Phillips Frearson
An argument is the value you pass in to a method and a parameter is the value that will be filled in. Arguments Parameters
When you use a method, this is called invoking the method For example, System.out.println(“hi”) is an invocation of the println() method The way Java only copies primitive (int, double) values is called call-by-value.
this is a command for the class object The this command is useful when you need to be explicit about which method or object to access (also when linking) (See: ThisCommand.java)