Krishna Priya

Greenhorn
+ Follow
since Jun 08, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Krishna Priya

Hi All
Could anyone of you please give me the correct answer for the folowing code:
Given the following class definition:
1. public class deriveddemo extends demo {
2. int M,N,L;
3. public deriveddemo(int x,int y) {
4. M=x;N=y;
5. }
6.public deriveddemo(int x) {
7. super(x);
8. }
9. }

which of the following constructor signatures must exist
in the demo class for deriveddemo to compile correctly?
a.public Demo(int a,int b)
b.public Demo(int c)
c.public Demo()
I think the correct answer is only b.But the correct answer
is b and c.Howcome c is correct ans?
Thanks and Regards
Priya
Hi All,
I have one query regarding innterface cast.This is from one of the mocks.
Suppose we have 2 classes defined as follows:
class base extends object implements Runnable
class derived extends base implements Observer
Given 2 variables created as follows:
base abase = new base();
derived ader=new derived();
which of the following java statements will compile and
execute without error.choose all which apply.
A.Runnable rn=ader;
B.Runnable rn2=(Runnable)abase;
C.Observer ob=abase;
D.Observer ob2=(Observer)abase;
Answers given was a and b.
But I didn't understood the interface cast.Could any of you please explain me how it is?
Thanks and Regards
Priya
Hi vikram
congratulations!!!
Could you please send me model of the questions in the exam.Iam taking exam on this coming 23rd.Please help me.
mail-id : n.nkpriya@mailcity.com
Thanks and Regards
Priya
Hi All,
Could anyone of you who has taken the exam(new pattern),please tell me that are there any questions on gridbag layout in the exam...
Regards
Priya
hi
Can you give some idea of what were the questions about in threads.And could you please provide me the pattern of the
questions that were in paper by mail.Iam giving exam on 23rd of this month.
mail-id : n.nkpriya@mailcity.com
Thanks and Regards
Priya