Am i passing values or adresses? [Java]
- by Samuel
Hello World,
I am new to java and i was asking myself, if i have a class 'Example' and somewhere i make a:
Example example1 = new Example();
and i add some stuff to it, lets say example1.setExampleBoolean(false); and now i make:
Example example2 = example1;
example2.setExampleBoolean(true);
Did i say with Example example2 = example1 let…