Prem

Greenhorn
+ Follow
since Oct 12, 2001
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 Prem

Any body tell me about protected methods and classes in package
that How can i use protected methods and classes.
I know in polymorphysim that how protected method is using of overriding.
if any body can help me.
------------------
18 years ago
I have some problem about constructor that if i create a object of any other class in my main method , and that class has already create a object of third class before it's constructor ,
what out will be displayed when i call a constructor of that class( that class has not default contructor ).

------------------
18 years ago
Yes you are right!,I even tried an example before posting reply.It automatically adds vertical scrollbar if needed.
Any correction.
Thanks.
Prem
Ajith,
Can you please explain me the following trap of yours!
Two public classes in the same file.
I am following JavaRanch for about a month. I was bit confused on this.
Thanks.
Prem

Thanks a lot ,Andreas and William. As I am new to Java,I was bit confused by Ajthi's one of the Traps: ie.
Two public classes in the same file.(!!!)
But I really want to know what does the above statement means.
I even tried to put two public class and does not compile.
Once again Thanks to Andreas and William.
Thanks.
Prem

Hi Vivek,
Thanks for your reply. what does the following concept means:
Two public classes in the same file.
This by Ajith for 'Traps to be aware of .....'.
Am I missing something here to follow?.
Please I really want this to be clarified.
Thanks.
Prem
Hi,
I am following Javaranch for about a month and this is my
first Post. I am new to Java and I want to appear for SCJP and
started studying from Java Bible.
Here is the question:
Can we have ,two public classes in the same File?.
I read this 'Traps to be aware of Thread in 'Ajith's contribution. Can anybody explain me how?.
Excuse me ,if it is duplicated. Please help me.
Thanks.
Prem