hi friends, Declaration of Top-level class Frog are legal, assuming animal is a existing class A. protected class Frog extends Animal{} B. private class Frog extends Animal{} C. transient clas Frog extends Animal{} D. native class Frog extends Animal{} as per my knowledge Top-level class must be either public or default. so that way none of above is correct answer but when i try to compile this code with protected and private modifier their class file created. so what should be the answer ? thanx in advance jay...
Randall Twede
Ranch Hand
Joined: Oct 21, 2000
Posts: 4092
posted
0
I get a compile time exception "Syntax Error" when i try to make top level class protected or private.
SCJP
jay vyas
Greenhorn
Joined: Dec 12, 2000
Posts: 9
posted
0
Originally posted by Randall Twede: I get a compile time exception "Syntax Error" when i try to make top level class protected or private.
thanx Randall, but if u have noticed then there will be class file created for protected and private modifier
Randall Twede
Ranch Hand
Joined: Oct 21, 2000
Posts: 4092
posted
0
yes i have heard of this before. it creates the class file even when the compiler throws an exception.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.