GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 926 of 928    Print  
Subclass Frame
Why we prefer a subclass of Frame over an instance of Frame when we creating a window?


  
Total Answers and Comments: 1 Last Update: April 20, 2009     Asked by: vijay_thezorro 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 20, 2009 01:29:15   #1  
VenkitaKrishnan Member Since: April 2007   Contribution: 7    

RE: Subclass Frame

One important reason would be to override the existing paint method which will work only if we subclass Frame and not create an instance of the frame.

However since extends is such a premium in java we should not waste it by simply subclassing Frame but use it for much more important purpose.


 
Is this answer useful? Yes | No

 Related Questions

The window, Frame and Dialog classes use a border layout as their default layout. 
Latest Answer : jframe,jpanel containers use a border Layout as their default layout ...

Objects that subclass the Observable class maintain a list of observers. When anObservable object is updated it invokes the update() method of each of its observers tonotify the observers that it has changed 
Latest Answer : Observer observe only those class which are Observable. ...

Name three Component subclasses that support painting.The Canvas, Frame, Panel, and Applet classes support painting.

Frame 
Latest Answer : frame ...

An abstract method is a method whose implementation is deferred to a subclass. 
Tags : Abstract

The Frame class extends Window to define a main application window that can have amenu bar. 
Latest Answer : Frame can be part of the window but window can not part of the frame. like e.g. when you will create frames with the help of HTML at that time you see many frames in a one window but we can't make a window in frame so we can say fram is a part of ...

A class is a subclass of itself. 
Latest Answer : No, a class can't be a subclass of itself.    class A extends AThis is cyclic inheritance which is not possible. ...

Latest Answer : Name Of Container Classes Window, TabbedPane, Frame, Dialog, Applet or ScrollPane ...

All tasks must implement the run() method, whether they are a subclass of Thread orimplement the Runnable interface. 

Canvas 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Frame Relay

Frame Relay Frame Relay is a concept where the information is sent using data frames in a digital format Using this relay service the data can be sent in a fast and efficient manner through the internet Frame Relay is also a cheaper way to send data from one point to another mosgoogle The internet s
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

JavaScript Frame object

JavaScript Frame Object In this JavaScript tutorial you will learn about frame object its properties and methods in detail with example frame object properties of frame object frames self name length parent methods of frame object blur focus setInterval clearInterval setTimeout expression millisecon
 

Java Technology Trends

Technology Trends Involving Java Java is an object oriented programming language OOP for Web browsers It is organized around data rather than actions and supports polymorphism which allows the same code to be written generically so it can function with different datatypes inheritance which allows on
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

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