Mohnish Khiani

Ranch Hand
+ Follow
since May 17, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohnish Khiani

This is my server code


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?
7 years ago





There are errors on line :5,6,7,8
and no error on line :3,4

Please explain how ?
7 years ago
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???
7 years ago
Whats the logic behind this output ?



Output : SubSuper

How?
7 years ago


Output : 0
How do we get output as 0?
7 years ago
i have executed the code and know the output is 5,but i wanted to know how?

That means evaluation is from left to right no matter pre or post operators?
8 years ago
Whats the order of evaluation?


Output :
5 3

What is the right output :
1+2+2=5
(or)
1+1+3=5
8 years ago
got it...thank you
8 years ago
What and how is this happening?


Output :
i1!=i2
i3==i4
8 years ago


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?
8 years ago
okay,so is this also correct :

B obj=(B)(new A());
8 years ago
That means whichever objects and instance variables can be accessed by o1 can also be accessed by o2....am I right?
8 years ago


What difference would be there in the working of o1 and o2 objects?
8 years ago
Thank You Sir..thanks a lot for your answer
8 years ago