GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE
Go To First  |  Previous Question  |  Next Question 
 J2EE  |  Question 24 of 104    Print  
what is the difference between light weight component(like swing) and heavy weight component(like awt).

  
Total Answers and Comments: 9 Last Update: August 12, 2006     Asked by: Naresh 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 03, 2006 03:33:13   #1  
chandana        

RE: what is the difference between light weight compon...

The main difference is AWT is a package which is used for running all the applications such as Applets Swings Beans.

Where as A Swing is an class which can be used only for deploying or writing the swing applications.


 
Is this answer useful? Yes | No
April 05, 2006 06:23:01   #2  
Royal        

RE: what is the difference between light weight compon...

So there is the difference between package and class?

i think package is the collection of classes.


 
Is this answer useful? Yes | No
April 08, 2006 00:51:50   #3  
Rajesh Jangid        

RE: what is the difference between light weight compon...
Swing just wrapes around the existing windows API whereas AWT is the whole windows functionality impememted.
 
Is this answer useful? Yes | No
April 18, 2006 06:55:37   #4  
samatha        

RE: what is the difference between light weight compon...

The main difference lightweight components are o.s independent heavy weight components are o.s dependent


 
Is this answer useful? Yes | No
April 19, 2006 01:07:50   #5  
Jayakrishnan K.R.        

RE: what is the difference between light weight compon...

Hey

Lightweight means all the APIs are in PURE JAVA and for HeavyWeight it is not so..


 
Is this answer useful? Yes | No
April 24, 2006 04:37:22   #6  
Yunus        

RE: what is the difference between light weight compon...
The basic difference between Swing and AWT is that Swing APIs are purely java libraries i.e. they don't at all depend on the native libraries to draw graphical components. Because of this feature they provide a consistent look and feel on all platforms. AWT libraries require the support of native graphics libraries and some of their GUIs components look different on different platforms.Moreover Swing components are not inherently Thread safe you explicitly have to write synchronized code to manipulate or redraw them whereas AWT components can be trusted in a multithreaded environment.AWT Components are called heavyweight components because of their dependency on native libraries. Swing components are called lightweight due to their independence of native libraries. Hence Swing operations are much faster because each and every operation is taken care by the java runtime env and no delegation of events or commands to the native libraries is required.
 
Is this answer useful? Yes | No
May 21, 2006 02:54:33   #7  
Srinivas        

RE: what is the difference between light weight compon...

Hi Friends

In java the componenets are light weightcomponents and heavy weight components .light weight componenets are the componenets which are used less resources and light weight components have heigh performance.heavy weight componenets are the componenets which are uses more resources than light weight components and heavy weight components have low performance.

ok bye..........

Keeps Smiling And Mailing

bora_srinivasarao@yahoo.co.in

NOTE: If Any one have doubts Then send a mail to My mail id.and if any one want e-books java faq's and material send a mail to my id.


 
Is this answer useful? Yes | No
July 24, 2006 15:35:56   #8  
srinivasaraobora Member Since: May 2006   Contribution: 31    

RE: what is the difference between light weight compon...

Hi Friends

In java the componenets are light weightcomponents and heavy weight components .light weight componenets are the componenets which are used less resources and light weight components have heigh performance.heavy weight componenets are the componenets which are uses more resources than light weight components and heavy weight components have low performance.

keeps smiling and mailing

bora_srinivasarao@yahoo.co.in

HELP EVER HURT NEVER & IMPOSSIBLE AS POSSIBLE

Note:If any one want java materials like e-books faq's send a mail to my id.if any doubts regarding java send a mail to my id if possible i will send answers.if any one want how to install java softwares tomcat weblogic eclipse jbuilder etc and how to use plz send amil or ask online also i will definitly tell.


 
Is this answer useful? Yes | No
August 12, 2006 03:45:18   #9  
srinivasaraobora Member Since: May 2006   Contribution: 31    

RE: what is the difference between light weight compon...

Hi Friends

In java the componenets are light weightcomponents and heavy weight components .light weight componenets are the componenets which are used less resources and light weight components have heigh performance.heavy weight componenets are the componenets which are uses more resources than light weight components and heavy weight components have low performance.Awt components are heavy weight components .it uses internally c native code.

keeps smiling and mailing

bora_srinivasarao@yahoo.co.in

HELP EVER HURT NEVER & IMPOSSIBLE AS POSSIBLE

Note:If any one want java materials like e-books faq's send a mail to my id.if any doubts regarding java send a mail to my id if possible i will send answers.if any one want how to install java softwares tomcat weblogic eclipse jbuilder etc and how to use plz send amil or ask online also i will definitly tell.

for java click on it: http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/DEA2eIX.html

for myhome page: http://in.geocities.com/bora_srinivasarao/MyHomepage.html


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape