Hello Friends, In this Blog Post I am going to let you know about core java interview questions related to Graphics programming using AWT.
Core java interview questions covers all the important questions of the topics mentioned above.
These core java interview questions is a great help to remember all the important highlights and important topics from each java chapter.
These interview questions will surely help to understand a few very confusing concepts in java.
Core java interview questions are a few quick questions made from each chapter by compressing the whole theory content of that chapter.
What is the difference between a window and a frame?
A window is a frame without any borders and title, whereas a frame contains borders and titles.
What is event delegation model?
The event delegation model represents that when an event is generated by the user on a component, it is delegated to a listener interface and the listener calls a method in response to the event. Finally, the event is handled by the method.
Which model is used to provide actions to AWT components?
Event delegation model.
What is an adapter class?
An adapter class is an implementation class of a listener interface that contains all methods implemented with an empty body. For example, WindowAdapter is an adapter class of the WindowListener interface. Adapter classes reduce overhead on programming while working with listener interfaces.
What is anonymous inner class?
Anonymous inner class is an inner class whose name is not mentioned, and for which only one object is created.
What is the default layout in a frame?
It is a Borderlayout.
What is the default layout in an applet?
It is Flowlayout.
So this was all about the Core java interview questions in this topic.
These Core java interview questions could be a great help in your college viva, academic study, and any job interview.
In the case of any queries, you can write to us at [email protected] we will get back to you ASAP.
Hope! you would have enjoyed this post about Core Java Interview Questions Part 18/Graphics programming using AWT.
Please feel free to give your important feedbacks in the comment section below.
Have a great time!