Swing Interview Questions And Answers

Swing interview questions and answers on advance and basic Swing with example so this page for both freshers and experienced condidate. Fill the form below we will send the all interview questions on Swing also add your Questions if any you have to ask and for apply in Swing Tutorials and Training course just send a mail on info@pcds.co.in in detail about your self.

Top Swing interview questions and answers for freshers and experienced

What is Swing ?

Answer :

Questions : 1 :: What is Swing?

Swing is a library of GUI controls. Classes in swing are not OS dependent. They don’t create peer components, so they are light weight unlike AWT. They don’t take the look and feel of...View answers

Questions : 2 :: What is AWT?

Abstract Window Toolkit provides a standard Application Programming Interface for writing Graphical User Interfaces in Java.

Questions : 3 :: What are the differences between Swing and AWT?


Swing is a library of GUI controls. Classes in swing are not OS dependent. They don’t create peer components, so they are light weight unlike AWT. They don’t take the look and feel of...View answers

Questions : 4 :: What are heavyweight components? What is lightweight component?

In Java AWT - Abstract Window Toolkit, GUI components created are OS dependent. When they are created, each component forms a peer component due to which they are called heavyweight...View answers

Questions : 5 :: What are controls and what are different types of controls in AWT?

Controls are components that allow a user to interact with your application. A component is a graphical object. A few examples of components...View answers

Questions : 6 :: What is JFC? What are the features of JFC?


The Java Foundation Classes are a set of GUI components and services which simplify the development and deployment of commercial-quality desktop and Internet/Intranet applications. Java...View answers

Questions : 7 :: Explain the difference between Swing and JSF.

JSF applications cannot operate when a network is not present. Swing applications can operate on local data when the network is not there. 

Questions : 8 :: Explain the difference between AWT and SWT.

Abstract Windows Toolkit (AWT) is the original Java GUI tool kit. AWT's comes standard with every version of Java technology. It is very stable. It doesn’t need to be installed. AWT is a...View answers

Questions : 9 :: Explain the difference between JFC & WFC.


JFC supports robust and portable user interfaces. WFC runs only on the Windows (32-bit) user interface, and uses Microsoft extensions to Java for event handling and ActiveX integration. WFC...View answers

Questions : 10 :: What is the use of JFC in Java Swing?

JFC stands for Java Foundation Classes that consists of the collection of libraries designed to make the programmers that are creating the enterprise applications using Java Swing. Swing APIs are...View answers

Questions : 11 :: What is the difference between swing and AWT?

AWT is a heavyweight component that is used to associate the language with the native component. Whereas, Swing is the lightweight component that doesn't associate, any language with the component...View answers

Questions : 12 :: What is the function of lightweight Components used in Swing?

Lightweight component allow the components to be dependent on the native group of other components. These components are simplified types that are used to display themselves on the screen and allow...View answers

Questions : 13 :: Why is Model-View-Controller Architecture used in Swing?

Model-View-Controller Architecture is used to show the design of the components that are made up of three elements and these elements show the behavior of components as: • Model: it consists of...View answers

Questions : 14 :: How is multi-threading gets implemented using Swing?

Swing uses multi-threading techniques to utilize the resources that are provided by the Java classes. Swing allows the users to create independent threads that can be used to change the model states...View answers

Questions : 15 :: What are the different types of layout managers used in Swing?

Layout manager is an object that is used to implement an interface which determines the size and position of the component that is used inside a container. Components can provide the size and the...View answers

Questions : 16 :: What is the process of setting the layout manager?

The layout managers uses Jpanels and content panes to initializes the object that is to be used with the FlowLayout by default and it can be changed by defining a different layout. Content panes uses...View answers

Questions : 17 :: What are the different components that are used to show a container?

There are few components that are used to show the container used to define the visual properties of it. The components are given below: • The layout manager: it is the manager of all the...View answers

Questions : 18 :: What is the function of Internal Frame in Swing?

Internal frame allow one window to be displayed within another window. Adding of internal frame can be used to the desktop pane or the content pane. The user interface allows choosing the base of the...View answers

Questions : 19 :: Write a program to include the Internal Frame in Swing.

Internal frame is the frame that keeps one window inside another window and allows them to switch from one frame to another frame. The program shows the display of the internal frame: To set the...View answers

Questions : 20 :: What is the purpose of action interface in Swing?

Action is performed on a state to allow it to change. It defines the interface that it is implementing. The library that is used for the action interface is javax.swing.Action. This action interface...View answers

Questions : 21 :: What is the function of AbstractAction class?

AbstractAction class allows the implementation of the abstract functions and the action interfaces. AbstractAction provides with the default functionality that are provided with the methods in the...View answers

Questions : 22 :: What is the use of JComponent Class in Swing?

Jcomponent is used as an abstract class that extends the functionality of the swing components. It allows the common swing component library to get involved in providing the functionality and the...View answers

Questions : 23 :: What is the use of double buffering in swings?

Double buffering can be achieved by using the Jcomponent class that allows the Swing component to enable this feature. Double buffering allows the component to execute faster or take less time to...View answers

Questions : 24 :: What is the purpose of Serialization in Swings?

Serialization is used when an object extends the Jcomponent class. The object's data in this case points out to the stream that is written or serialized and gives an output stream. This output...View answers

Questions : 25 :: How does Accessibility works in Swings?

The feature that is used in swing consists of accessibility technology that allows the class archives like JAR file. This file resides on separate machine and can not be accessed without the...View answers

Questions : 26 :: How is Parsing HTML used in Swing?

JEditorPane class is used to display the HTML content that is being written using the classes. When there is a file consisting of the HTML text gives the request to read the file identify the method...View answers

Questions : 27 :: Write a program to paint the off-screen buffer in swings

To paint the off-screen buffer in swings requires the paint component that is using an image allowing easy to create set of images and its components in different states. This image that is stored,...View answers

Questions : 28 :: What are the steps required in creating an empty table drop?

The dragging and dropping for an empty table allows it to be portable and the data can be moved with ease. The steps that are followed for this is: • The creation of an empty table that is used...View answers

Questions : 29 :: What is the purpose of TransferHandler Class?

TransferHandler class is used for data transfer and it provides an easy way to transfer the data from the Jcomponent. All the details of the data are contained in the class and it support the classes...View answers
More Question

Ask your interview questions on Swing

Write Your comment or Questions if you want the answers on Swing from Swing Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 






--------- Tutorials ---