This is the code in MIDLet which discovers devices:
I have deployed the midlet in my phone.My problem is that the server displays
"Waiting for incoming connection "
And when the mobile searches for the device it is not able to locate any....what do i do to establish the connection?
when p calls printit(),the object calling it is of class B.
Therefore it calls this.printit() where this is an object of class B.Hence it is like B.printit() and not A.printit() as there is no relationship between printit() of A and B.Please explain???
It's output is :
Static func1 of hobbit
Static func1 of hobbit_exp
Static func1 of hobbit
I understand that this is not dynamic polymorphism because which static method is to be invoked depends on the reference type rather than the actual object type....but then what is this called when I can redifine the static method in my subclass....do static methods get inherted?