The Java programming language always uses call by value

Report
Question

This is an excerpt of the book "Core Java, Vol. I - Fundamentals", that shows (and clarifies) how the Java programming language always uses call by value when passing parameters to a method. "The Java programming language always uses call by value. That means that the method gets a copy of all parameter values. In particular, the method cannot modify the contents of any parameter variables that are passed to it. For example, consider the following call:

double percent = 10;
harry.raiseSalary(percent);
No matter how the method is implemented, we know that after the method call, the value…

General 3.9 years ago 0 Answer

Book Review: Core Java, Vol. I - Fundamentals

Report
Question

After being a PHP programmer for some time now, I've faced the need of learning a serious programming language instead of a scripting language (Note: not that there's something bad about PHP, it is just great). I wanted a no-nonsense book, aimed to experienced programmers. Not that I'm a PHP ninja, but I'm definitely not a newbie. I searched the Internet for some book suggestions and decided to try: Core Java, Vol. I - Fundamentals In short, this books delivers what it promises. It's a masterpiece of information written in a way that you are not able to read a…

Book Reviews 3.9 years ago 0 Answer