Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


1.what is the exact difference between applet and frame?

2.Do we use main method in frames?

Answers were Sorted based on User's Feedback



1.what is the exact difference between applet and frame? 2.Do we use main method in frames?..

Answer / vaishali_bharvada

the two are unrelated concepts.

An Applet is a Java program running inside a web browser,
while a Frame is a kind of window. An Applet may open a
Frame, or it might just run inside its panel.

Are you thinking of running an applet as a standalone
application inside a Frame?

Is This Answer Correct ?    48 Yes 8 No

1.what is the exact difference between applet and frame? 2.Do we use main method in frames?..

Answer / amarnath88888

I think you are trying to ask difference between applet
window and frame.

If window it is already present there if you extend Applet
class to your class. You can create the components inside
the window and no need to write the code in main() method.
Its enough to write in init() or paint() method.

If it is a Frame then you need to extend Frame class to your
class. Then you can place the components inside frame. But
you need to include setSize(x,y) for setting the size of the
frame and setVisible(true) for displaying the frame in the
window.
And you need to write main() method also. there you need to
create object for frame class which you have created and
call the methods to display the frame.

Is This Answer Correct ?    26 Yes 3 No

1.what is the exact difference between applet and frame? 2.Do we use main method in frames?..

Answer / yogesh sharma

Ans 1.applet is run on web browser but frame is't.applet is not use
main() method applet is the sub class of Applet and Frame is the member Of Swing and it is member of stand alone application.
Ans 2. Yes, we use main() in Frame.

Is This Answer Correct ?    7 Yes 3 No

1.what is the exact difference between applet and frame? 2.Do we use main method in frames?..

Answer / lokhande pranali

There is one more diff in applet and frame that is applet does not support the native code but frame support the native code

Is This Answer Correct ?    4 Yes 0 No

1.what is the exact difference between applet and frame? 2.Do we use main method in frames?..

Answer / fazidh

even a frame is an applet program. we should run the frame programme as application programme

Is This Answer Correct ?    8 Yes 5 No

Post New Answer

More Core Java Interview Questions

Which class is the superclass for all the classes?

0 Answers  


What is literal example?

0 Answers  


In a container there are 5 components. I want to display all the component names, how will you do that?

0 Answers  


Why we used break and continue statement in java?

0 Answers  


What is meant by JVM ?

6 Answers  


Write code of any action class?

0 Answers  


Explain numeric promotion?

0 Answers  


What is java util?

0 Answers  


What is garbage collection in Java, and how can it be used ?

32 Answers   Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,


Difference between throw and throws?

0 Answers  


Is null == null in java?

0 Answers  


What is garbage collector?

0 Answers  


Categories