Annie Naqvi

Ranch Hand
+ Follow
since May 04, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Annie Naqvi

Hi Sibtain,
Yep it's a good idea!
Prasanna & anuj i think we should not break the system in parts and then start working on some use cases rather we should try to make all the use cases urself and share with others as it will help us more.Lets see what others say? :roll:
Sibtain i have seen the scenario and will try to make the uses cases soon.Before that i think we should first determine the actors as our first step.What do you think?
Regs.
Annie.
My heartiest congratulations to Dear Afsah Shafqat on her great success!!!
Well Afsah it's really nice that you are not disappointed from such stupid comments from persons like Lala and why should you?
After looking at Lala's replies i think he is a man who has achieved nothing in his life at his own and thus he just can't appreciate others on their success.So we should not mind his attitude...he is in a habbit of discouraging others.

Originally posted by Peter Masreblta:
The discussion here has been way out of the topics of this group.Further discussion would better be moved to the "Meaningless Drivel" of this site where you or whoever is pretending to be this little kid, would got more attention there.


Peter I am not in favour of shifting this thread to MeaningLess drive as this is not a meaning less thread rather this is the story of "The World's Youngest SCWCD" and this will really be a great source of inspiration for people doing WCD prep.like me.Rather you should warn people who are trying to discourage the great ranchers.

Originally Posted by Win:
Let talk about more JAVA here, not who is the youngest or oldest,does not matter.Okay


I agree with you Win that we should talk more about Java but these kind of postings tends and motivate us for talking more about java and related technologies!So we should appreciate exceptionals irrelevant of our age and regions.

Well Done Afsah and keep it up!
I wish you luck for your future dear.

[This message has been edited by Annie Naqvi (edited November 30, 2001).]
Q1.Which methods release the lock
1.wait() true
2.yeild() true
3.sleep() false
4.notify() false
5.suspend() false
6.stop() true
Q2.which layout can position components at exact location
1.null layout (t)
2.cardlayout (f)
3.setlayout (f)
4.borderlayout (t)
5.GridLayout (t)
6.GridBagLayout (t)

Q3.Which of following statments are true
a: If object obj1 is accessible from object obj2 and object2 is accessible from obj1, then obj1 and obj2 are not eligible for garbage collection. (False)
b: If an object obj1 can access an object obj2 that is eligible for garbage collection, then obj1 is also eligible for garbage collection.(False)
c:Object will not be destroyed until they have no references to them (True)
d: If an exception is thrown during excution of the finalize method of an object,then the exception is ignored and the object is destroyed.(True)
Plz guys correct me if i am wrong...
Regards,
Annie.

[This message has been edited by Annie Naqvi (edited August 17, 2001).]
Hi,
Well IMO the correct ans are a,d & e.As yeild may stop execution but that is not guaranteed.
I can't say anything abt real exam but will tell you soon after giving mine
Regards,
Annie.
Thanx Nguyen you have given a good scenario to explain it,Paul has also mentioned something like this but I don't know why I was not gtting the point..(may be my mind was overflowing with the concepts of thread ..)
Paul you may take rest now as you are right...
Annie.
Thus it mean that JQ+ has got wrong ans too.
Paul must see this..

[This message has been edited by Annie Naqvi (edited August 16, 2001).]
Thanks David for your reply it may help me in the exam...
Wish you Good luck for your future..
Regards,
Annie.
23 years ago
Jq+
Question ID :988384705515
[code]
public class Test extends Thread
{
static Object obj1 = new Object();
static Object obj2 = new Object();
public void m1()
{
synchronized(obj1)
{
System.out.print("1 ");
synchronized(obj2)
{
System.out.println("2");
}
}
}
public void m2()
{
synchronized(obj2)
{
System.out.print("2 ");
synchronized(obj1)
{
System.out.println("1");
}
}
}

public void run()
{
m1();
m2();
}
public static void main(String[] args)
{
new Test().start();
new Test().start();
}
}
Select the right ans:
1. it may cause deadlock
2. Nothing can be said for sure.
3.There is no potential for deadlock.
4.The prog. will always print 1 2,2 1,1 2,and 2 1
Ans.1 & 2
Hi Paul Anil,
I think the ans for this code is not right as i have compiled the prog.and always got 1 2,2 1,1 2,2 1.
I think it must 3&4.
Anyone who can tell me if i am right?
Regards,
Annie.
Congratulations David...
Good score..
What was the ratio of questions from thread,io,and inner classes.
Regards,
Annie.
23 years ago
Hi again..
Binu and Anoop thanx for your answers..
But I am not out of problem yet
I have done same as Binu said but now I am getting
"java.lang.ClassCastException: org.apache.catalina.loader.StandardClassLoader"
Oh my head is not responding now as i am trying since last night to solve the prob.
I will really appreciate any guidence in this respect.
Regards,
Annie.
23 years ago
Hi,
Anoop plz tell me the right explaination as i am new to servlet.
Thanx.
Annie.
23 years ago
Hi,
Thanx Binu for reply.
One more thing to clear from anyone here that in the example coded above I think that i'will got each object one by one as nextElement() will give the next object in the context.So why binu said that in the above case i will got only last element.
Thanx in @dvance.
Annie.
23 years ago
Hi All,
I am having problem while retrieving Object of class A from Servlet Context.Plz help me.
A part of code is here:
<code>
1. ServletContext context = getServletContext();
2. Enumeration e=context.getAttributeNames();
3. while(e.hasMoreElements())
4. {
5. A sm = (A)e.nextElement();
6. }
</code>
I am getting ClassCastException at line 5.I have stored the objects in ServletContext of Class A(a public class in the same server class path.)
Any help will be acknowledged.
Regards,
Annie.
23 years ago
Hi ,
Great Achievement !!!
It's really a great news!
Wish you best of luck for your future.May God help you in achieving all your targets..(Ameen).
Regards,
Annie.
23 years ago
Hi ,
Great Achievement !!!
It's really a great news!
Wish you best of luck for your future.May God help you in achieving all your targets..(Ameen).
Regards,
Annie.
23 years ago