



















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
During the course study of Java and the Web, I study the main concept about the different programming languages, specially java and the application of the java on the web. In these slides the main key points which I focused during my preparation are: Parameter Passing, Method, Type, Actual Parameters, Passed, Method Header, Copied, Primitive Parameter Types, Reference Type Parameter, Formal Parameter
Typology: Slides
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















public class PrimitiveParameter { public void changeValue (int parameter) {parameter = 20;} public static void main (String args[]) { int parameter = 10; PrimitiveParameter test = new PrimitiveParameter(); test.changeValue(parameter); } }
public class RefParam { public void changeObject (Car parameter) {parameter.changeParameter();} ... RefParam change = new RefParam(); parameter = new Car(); change.changeParameter(parameter); }
… Point p = new Point(10, 20); addTen(p); System.out.println(p.x + “,“ + p.y); … void addTen(Point p) { p.x = p.x + 10; p.y = p.y + 10; }