MahaAdd

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

Recent posts by MahaAdd

Hi Jon Aryan,
thanks for the example.
I just wanted to know whether abstract keyword has any significance when added to an interface? if so, what?
thanks again

Originally posted by Jon Aryan:
True,,, interfaces provide just the declarations of method and implicitly these methods are "public abstract".
Interfaces are useful when some classes implements it, or some other interfaces extends it.
The interface "LayoutManager" is implemented by classes like FlowLayout, GridLayout etc.
BorderLayout, CardLayout classes implements LayoutManager2.
LayoutManager2 extends LayoutManager.
So BorderLayout, CardLayout classes implements LayoutManager, but not directly.
I dun know whether i answered ur question the way u wanted !!.

[This message has been edited by Jon Aryan (edited October 06, 2000).]


Thanks Rong..

Originally posted by Rong Chen:
just find something in the java bible, jls, which we can rely on, is says:
9.1.1.1 abstract Interfaces
Every interface is implicitly abstract. This modifier is obsolete and should not be used in new programs.
rong chen


Hi Ajith,
i was just browsing through the servlet API and found that servlet interface is declared as "public abstract interface Servlet" .
can anyone tell me what u mean when u declare an interface as public abstract interface , as interfaces are implicitly abstract and hence have no need to be explicitly stated as such.
thanks in advance Ajith & others,
Mahalakshmi Addanki

Originally posted by Ajith Kallambella:
Methods in an interface are implicitly abstract.
An explicit "abstract" qualifier is redundant and
has no effect on compilation.
[b]abstract interface is same as interface.

interface with explicitly declared abstract methods need not be declared abstract( for abstract classes, this is not true ).
HTH
Ajith
[/B]


Hi,
thanks musa..
and good luck for u.

Originally posted by musa:
Hi
Double congrats yo the two of you
I think u have done a swell of a job esp being from a non maths
background.
this shows that where there is a will there is a way! ;-))


Hi,
after u've spent 2 weeks on java, now u can try to write small "helloworld" types of programs and make sure u compile and execute the program and check for the errors..
i u start working at 8hrs per day, then 3weeks of preparation should be fine..
thnaks maha

Originally posted by akshaysalkar:
How long does it take for one to prepare for the Java Exam(SCJP), if i am a beginner in Java. I have just spent 2weeks doing it and am hung at classes.
ak.


Hi Everyone,
i am happy to inform u that i & am my husband, both of us are now SCJPs!!! i've got 88% and my husband scored 86%..though these scores are less when compared so many others here.
and abt the exam, its nothing beyond fundamentals.. lay emphasis on fundamentals..thanks to MarcusGreen & maha all these sites have helped us a lot, especially the discussion forum at javaranch, made my fundamentals clear. Abt my preparation:
i am a housewife with a 1 and 1/2 year old kid & i am from non-maths background, and it took complete 3 weeks for the entire preparation.
thanks once again to all of u...especially Ajith, MahaAnna.
MahaAdd
Hi Anil,
can u mail the same to me at [email protected]
asap, if possible..
thanks,
maha
Hi,
the answers are now available on the same site:sun.java.com
u can look into that,
maha

Originally posted by bala_chocos:
hi
anyone can help me . below is sun sample questions.please give the correct answer
1. What would be the result of attempting to compile and run the following piece of code?
public class Test {
static int x; public static void main
(String args[ ])
{System.out.println("Value is " + x);}
}
The output "Value is 0" is printed.
An object of type NullPointerException is thrown.
An "illegal array declaration syntax" compiler error occurs.
A "possible reference before assignment" compiler error occurs.
An object of type ArrayIndexOutOfBoundsException is thrown.

2. What should you use to position a Button within an application Frame so that the size of the Button is NOT affected by the Frame size?
a FlowLayout
a GridLayout
the center area of a BorderLayout
the East or West area of a BorderLayout
the North or South area of a BorderLayout

3. Which is the advantage of encapsulation?
Only public methods are needed.
No exceptions need to be thrown from any method.
Making the class final causes no consequential changes to other code.
It changes the implementation without changing the interface and causes no consequential changes to other code.
It changes the interface without changing the implementation and causes no consequential changes to other code.

4. Which of the following most directly supports retrieval of stored objects based on a unique key of String type?
Map
Set
List
Collection
Enumeration

5. Which statement is true about a non-static inner class?
It must implement an interface.
It is accessible from any other class.
It can only be instantiated in the enclosing class.
It must be final if it is declared in a method scope.
It can access private instance variables in the enclosing object.

6. Which are keywords in Java (select all that apply)?
NULL
sizeof
friend
extends
synchronized

7. Which declares an abstract method in an abstract Java class?
public abstract method();
public abstract void method();
public void abstract Method();
public void method() {abstract;/}
public abstract void method() {/}

1 a
2 a
3 e
4 c
5 c,e
6 d,e
7 b,c
The above mentioned answers are correct or not.if it is wrong
give me the correct answer ans explanation


Hi VR,
Hearty congrats!!!
maha

[This message has been edited by Ajith Kallambella (edited September 07, 2000).]
Hi Jasjava,
can u mail the link to JAMIS'S 172 questions??
thanks & congrats once again,
maha
your quote:
I did 300 - 400 questions everyday.. and have done Jamis's 172 questions within one hour...
Hi,
can u mail the link to this javaranch mock test site??
thanks maha

Originally posted by shaik abdulla:
#107 Assume x = 0 and y=3. what is the value of x after x=y++;
Answer :3
I think the above answer is not correct.
x value is 4 and y is 3 after x=y++ is executed.


Hi Sunita,
i am regretting a lot for not knowing about this earlier,
anyways do u know the links to rai's site??
thanks, maha

Originally posted by Sunita Vontel:
What I know about the Beta test is
they conducted an exam for free on august 23rd.This was I think because they are planning to change the questions and wanted to test.


Hi May,
congrats!!!
can u provide me with the links to Rai's notes site??
thanks,
maha
HI Ajith,
i found this "[This message has been edited by Ajith Kallambella (edited August 31, 2000).]" underneath my reply message..what does this mean?? did u edit something here??
thanks, maha

Originally posted by MahaAdd:
Hi Deepak,
congrats!!!
how could u manage to get 98%??slogged very ...hard..
here's my email id: [email protected]
can u share the tips??
thanks,

[This message has been edited by Ajith Kallambella (edited August 31, 2000).]