can someone explain the meaning of reference type using the simplest way?i'm still new to java
10/19/2017 1:54:52 AM
oyl7 Answers
New AnswerA reference type is a data type thatโs based on a class rather than on one of the primitive types that are built in to the Java language. The class can be a class thatโs provided as part of the Java API class library or a class that you write yourself.
Here's a good read for you. ๐ https://blog.penjee.com/passing-by-value-vs-by-reference-java-graphical
A reference type is something that is passed by reference. IE is an Object. int[] a = {6}; someMethod(a); void someMethod(int[] b){ b[0] = 2; // a becomes {2} }
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message