[JAVA] What is a reference type variable?

What is a reference type variable? Three types: class type, array type, and interface type

Example sample san1 = new sample → sample1 object sample san2 = new sample → sample2 object

sample san1 sample san2

If you write sample = sam1 here, sam2 disappears          ↓ sample san1 = new sample → sample1 object sample san2 = new sample → sample1 object

Where san2 refers is changed to sample1

Substituting NULL means that there is no reference destination

Recommended Posts

What is a reference type variable?
What is a boolean type?
What is a column Boolean type?
What is a constructor?
What is a stream
What is @ (instance variable)?
What is a Servlet?
What is a Ruby module?
What is a floating point?
What is a meaningful comment?
What is Jersey? Reference implementation?
What is a jar file?
What is a Java collection?
What is a lambda expression?
What is a fa⁉ enum?
What is a safety reference operator (&.) Using Ruby ampersand?
What is a lambda expression (Java)
[Swift] What is "inheriting a class"?
What is a Ruby 2D array?
What is a class in Java language (3 /?)
What is a terminal? -Absolute path & relative path-
What is a Spring Boot .original file?
What is the right migration data type? ??
[For programming beginners] What is a method?
What is a class in Java language (1 /?)
What is a class in Java language (2 /?)
[Rails] What is a dot (.) Or a colon (:)?
What is a request scope? Image commentary
What is Cubby
What is Docker?
What is null? ]
What is Keycloak
What is maven?
What is Jackson?
What is Docker
What is self
What is Jenkins
What is ArgumentMatcher?
What is params
What is SLF4J?
What is Facade? ??
What is Java <>?
What is Gradle?
What is POJO
What is Java
What is centOS
What is RubyGem?
What is programming?
What is before_action?
What is Docker
What is Byte?
What is Tomcat
Introduction to Recursive Functions: What is a Recursive Function?
[Java] Difference between equals and == in a character string that is a reference type
What is Maven Assembly?
What is `docker-compose up`?
What is the difference between a class and a struct? ?? ??
What is vue cli
What is an interface?
What is Ruby's self?
What is hard coding?