Is Java pass by reference or pass by value?

A common misconception is that Java is a pass by reference language. In this video Brian L. Gorman exposes the inner workings of pass by value.

By Brian L. Gorman
October 19, 2016
Screenshot from "Is Java pass by reference or pass by value?" Screenshot from "Is Java pass by reference or pass by value?"

A common misconception is that Java is a pass by reference language. In this video Brian L. Gorman exposes the inner workings of pass by value using a real world example. Brian first explains the difference between pass by reference and pass by value and then clarifies the use of pointers in Java. Beginning Java programmers will better understand how objects behave when passed to a new method and be able to ace this tricky question in an interview or on an exam.

Continue learning Java with our Learning Paths.

Learn faster. Dig deeper. See farther.

Join the O'Reilly online learning platform. Get a free trial today and find answers on the fly, or master something new and useful.

Learn more

Brian L. Gorman is an experienced .NET developer, certified as an MCSD in C# .NET. Holding a Masters of Science in computer information systems, he has many years of experience instructing college-level SQL database, C#, VB.NET, Java, and Microsoft Office courses. Brian has also authored a number of full video courses on these subjects.

Post topics: Software Engineering
Post tags: Questions
Share: