srini v

Greenhorn
+ Follow
since Dec 15, 2003
Merit badge: grant badges
For More
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 srini v

Dear Dhana rangu:
Its true that static methods can not be overridden. We can only hide them.
Here is an example to illustrate this.
class A{
static void M1(){
System.out.println("A.M1()");
}
void M2(){
System.out.println("A.M2()");
}
}
class B extends A{
static void M1(){
System.out.println("B.M1()");
}

void M2(){
System.out.println("B.M2()");
}
}
public class StaticMethodTest {
public static void main(String[] args) {
A objA = new B();
objA.M1();
objA.M2();

/* B objB = new B();
objB.M1();
objB.M2();
*/
}
}
Cheers
Dear All:
In debug mode, when constructing a string, I want go into string constructor source.
I am using JBuilder6.
Cheers
Hi Venkat:
Congratulations!
Wish you a happy and wonderful new year.
cheers
srini
20 years ago
Dear dennis zined:
Could you send info on loops in loops.
Thanks.
cheers
Dear Jim:
Thanks for your reply.
cheers
Hi:
Order: as per definition, mean to put things into their proper places in RELATION to each other.
eg., Arrange the given numbers in ascending ORDER
5 2 4 6
Result:
2 4 5 6

Sort: as per definition, a GROUP set up on the basis of any characteristic in common
eg., Sort the following magazines by their catagory.
HBR, PC World, ACM Magazine, BusinessWeek, Fortune
Result:
Business Magazines:HBR, BusinessWeek, Fortune
Computer Magazines: PC World, ACM
Hope this helps.
Hari, Lee thanks for your help.
Hi:


When cut and past the above code, it prints "C.m" as expected.
When I change the code

to

I get "B.m".
Please clarify?
Here is the note on 1.4 reprint by Mr. Khalid mughal.

FYI: An Indian reprint of our book (M&R) is not yet available.
It is very hard to say when it will become available as a reprint in India.
Sorry!
All the best.
khalid mughal


cheers
oops! Java locks (not threads) are reentrant.
Hi:

does it have the monitor for the specific method of the object or for the whole of the object?


The lock is for the whole of the object.
Also note that java threads are reentrant.
cheers