+ 1

Can one same package may have two classes of same name.....if we can have then which will execute first?????

I tried this but when I write these 2 same classes then the class which I write at last is only executed...first one is not....

24th Jan 2017, 6:50 PM
ayush
4 ответов
+ 10
Yes, programs are read from beginning to end so only last class is kept……
24th Jan 2017, 7:14 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 9
This is called "@Override"……
24th Jan 2017, 7:07 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
methods can be overridden.... but can class can override......coz my ques is about classes
24th Jan 2017, 7:12 PM
ayush
+ 1
thanks..
24th Jan 2017, 7:17 PM
ayush