vishad patel

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

Recent posts by vishad patel

hi rajani peddi;
Are you clear your JCP exam?
if Yes, you are stupid .
Do you know about layout? if ,yes you need to clear your knowledge about layout.
Bye.
Sorry.
hi freind ,
i should inform you that course of jcp exam is going to change and two new topics are going to include by sun people,they are
SWINGS & Network.
Thanks.
bye.
hi freind ,
i should inform you that course of jcp exam is going to change and two new topics are going to include by sun people,they are
SWINGS & Network.
Thanks.
bye.
hi ,friend
As you kbnow that java does not support multiple inheritance so that when you can write coding for applet then you extends the applet class ,in such a case you can't extends the Thread.so that to avoid this kinds of problem you have to implements the Runnable.
I think this is sufficient for your understanding.
Thanks .
if i am wrong then mail me.
vishad20002001@yahoo.com
Bye.
Hi ,how are?
Thanks for sending good question.
Bye.
see you.
hi friend
in the given coding the refrence variable at line 2 is not claimed for garbage collection. because it can be reachable through the refrence varible store in the refrence variable b.
if you write the coding in the following manner it will be eligible for GC.
class testfloat{
public static void main(String args[]){
A a = new A();
A b = new A();
a = null;
}
}
Thanks.
friend
you can use the following coding to generate the frame without title.
Frame f = new Frame();
thenks.
hi friend;
the correct answer is 2,3,& 4
becauase
in last forth option it will ceck both sides.so if there is not shortcircuit operators so it will check both condition.
Thanks.
Vishad Patel.
I am also agree with you.
bye.
vishad patel
23 years ago
hello friend ;
this programme will compile because you compare the object. and finally print yes because contain store in the refrence varible are same.
thanks.
hi friend i am also agree with you.
it will generate the compile time error because of following line in the source code.
Test5 = new Test5();
But if modify this line as follow then also it will not generate the output as f but it genarate the output as follow:
Done the test.
The End.
means output after modify line is : G.
ok thanks.
bye.
hello friend
in this programm ,in main mehtod you declare one variable of Aclass type which is set null,it mean it can not yet point to any object.so that when you try to run this programme it will generate NullPointer Exception at run time because you try to acess variable before initialise it .
thank for posting your problem.
bye.
hello friend
whether panel can be added to frame?
answer is yes ,you can add panel into the frame because frame is container.
similary you can only add menu to menubar and menubar only and only you can add to the frame.
if you try to add menubar to other container compiler give compileation error.
Thank for given qyuestion.
hi friend
equals() method can be override.
for your explaination i provide following source code:
import java.io.*;
class fileEquals{
public static void main(String args[])
{
File f1 = new File("xyz");
File f2 = f1;
if(f1.equals(f2))
System.out.println("Equals");
else
System.out.println("Not Equals.");
}
}
ok bye
thanks.
hi friend
Container is abstract class because one good example is it include the paint() method which we are using to doing some applet work and provide implementation.