Win a copy of Rust Web Development this week in the Other Languages forum!

nethanjana indrakeela

Greenhorn
+ Follow
since Nov 16, 2004
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 nethanjana indrakeela

hey,
see u'r code, frist you make counstructor A and make new object B, then that moment, invoke B constructor, but in the B constructer make object A,agian B counstructor invoke A constructor, you maked infinity loop!

if you wont, you can do it whithin one class,

class A{

void m(){System.out.println("m"); m2();}
void m2(){System.out.println("m2"); m();}

public static void main(String arg[]){


A a=new A();
a.m();
}
}



bye ,(magicnetha@yahoo.com)
hi all,

the runnable interface has only run methode signature,

we can use that after imlement,but why we use it like that?

why can't we use full run methode in our own class?
what is the deferent that ether interface and full methode in class?

Indarakeela
17 years ago