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.
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.
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.