ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the difference between AWT and SWING what is the 
advantage of using swing?
 Question Submitted By :: Visha_latchi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between AWT and SWING what is the advantage of using swing?
Answer
# 1
Mainly AWT is platform dependent and swings are platform
independent.For example an interface designed in awt will
give different sizes and layouts of elements based upon the
platform.But swings will give same outputs,this is the
reason why the j2ee deploytool is designed in swings and the
setup files of j2ee are designed in swings
 
Is This Answer Correct ?    5 Yes 1 No
Srinivasan.c
 
  Re: what is the difference between AWT and SWING what is the advantage of using swing?
Answer
# 2
Swing is a more powerful alternative for awt.Swing is a set
of classes that provides more powerful and flexible
components than awt.In addition to components like
buttons,check boxes and labels they also provide additions
such as tabbed panes,scroll panes and tables.


The main difference between awt and swing is that swing
components are not implemented by platform-specific code,
instead they are written entirely in Java and therefore are
platform-independent.

swing includes more graphic components then awt.Ritesh sharma

AWT - Heavy weight component.
it will invoke native methods.
awt has main() method.

SWING - Light weight component.
It doesn't invoke native methods. 
swing has not main()
 
Is This Answer Correct ?    6 Yes 1 No
Muffy.jad@gmail.com
[EITL]
 
 
 
  Re: what is the difference between AWT and SWING what is the advantage of using swing?
Answer
# 3
Difference between AWT and SWING:

Swing provides a richer set of components than AWT. They are
100% Java-based. There are a few other
advantages to Swing over AWT:
• Swing provides both additional components like JTable,
JTree etc and added functionality to AWT-replacement
components.
• Swing components can change their appearance based on the
current “look and feel” library that’s being used.
• Swing components follow the Model-View-Controller (MVC)
paradigm, and thus can provide a much more
flexible UI.
• Swing provides “extras” for components, such as: icons on
many components, decorative borders for
components, tool tips for components etc.
• Swing components are lightweight (less resource intensive
than AWT).
Java
45
• Swing provides built-in double buffering (which means an
off-screen buffer [image] is used during drawing
and then the resulting bits are copied onto the screen. The
resulting image is smoother, less flicker and quicker
than drawing directly on the screen).
• Swing provides paint debugging support for when you build
your own component i.e.-slow motion rendering.
 
Is This Answer Correct ?    4 Yes 1 No
Modi[achir Communication]
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
wht is customised exception? Prudential1
What is clipping?  2
Can an abstract class be final?  6
What are different type of access modifiers?  3
What are different types of access modifiers?  1
could you run the java program without main method?  3
What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys1
what is the use of reference variable  2
What we have to do, when we don't want to implement all methods of an interface?  2
adapter class ?  2
What is meant by JVM ?  3
Can we inherit the constructor in a Class?please give one example. iGate3
What are the latest versions in JAVA related areas? Netcraft2
Need 2+ yrs experienced java techinical question papaer for company Iflex  1
How to eliminate duplicates from an array? Wipro3
what is mean by overriding in which situation we wil use? Atlas-Systems4
what is Thread?  6
what is difference between abstraction and interface? FIC6
I need to know about complete topic in java's collections i with an examples TCS1
wahts is mean by thread? HCL14
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com