That suggests you have been using a word processor rather than a text editor. Find out what \160 is: look in the Unicode website for it; I think it is \u0070. But that comes out as p so it must be 160 in decimal not octal so try \u00a0 instead and see what that is.
By the way, your choice of names for your types and variables is really bad. This1?
Please indent your code consistently and put one blank like before each method or constructor. It is difficult to read as it is.
In main() you are creating one object of type This1 by using new This1() .When the object is being created it is calling the no-arg constructor , now here is the trick .In the constructor
System.out.println(this) means it is calling the This1 object and internally calling the overridding toString() .
We are getting the expected output as :TestClasssi10
Hope you understand .
Thanks ,
Satya
Post by:autobot
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking