Let's try this. Why do you think there should be some output? Which lines of the code do you expect to produce output?
- You creating a new
Constructor object.
- You then call
go1(). This returns the
String "this is from go1". You don't do anything with this
String, because you don't assign the value returned to anything.
- The program ends. Nothing else happens.