Why this java application print "true"?
- by user292084
This is my first Class Hello.java
public class Hello {
String name = "";
}
This is my second Class Test1.java
public class Test1 {
public static void main(String[] args) {
Hello h = new Hello();
Test1 t = new Test1();
t.build(h);
System.out.println((h.name));
}
void build(Hello h){
…