package stringobjcreation; public class AppMain { public static void main(String[] args) { Str1 s = new Str1(); Str2 ss = new Str2(); s.test1(ss); System.out.println(System.getProperty("aaa")); } }