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
1.what is the exact difference between applet and frame?

2.Do we use main method in frames?
 Question Submitted By :: AnithaBabu1
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 1.what is the exact difference between applet and frame? 2.Do we use main method in frames?
Answer
# 1
the two are unrelated concepts.

An Applet is a Java program running inside a web browser,
while a Frame is a kind of window. An Applet may open a
Frame, or it might just run inside its panel.

Are you thinking of running an applet as a standalone
application inside a Frame?
 
Is This Answer Correct ?    7 Yes 0 No
Vaishali_bharvada
 
  Re: 1.what is the exact difference between applet and frame? 2.Do we use main method in frames?
Answer
# 2
I think you are trying to ask difference between applet
window and frame.

If window it is already present there if you extend Applet
class to your class. You can create the components inside
the window and no need to write the code in main() method.
Its enough to write in init() or paint() method.

If it is a Frame then you need to extend Frame class to your
class. Then you can place the components inside frame. But
you need to include setSize(x,y) for setting the size of the
frame and setVisible(true) for displaying the frame in the
window.
And you need to write main() method also. there you need to
create object for frame class which you have created and
call the methods to display the frame.
 
Is This Answer Correct ?    1 Yes 0 No
Amarnath88888
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the Use of throws exception?  2
What is the difference between Integer and int?  4
what are the differences between final,finally,finalize methods?  7
How do you relate a Interface to a Class? Tell me in Detail?  4
whats is the use of final,in which situation final can be used in the application? DNS2
Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target  3
Can applet in different page/s communicate with each other?  1
whats the life cycle of jsp Satyam2
what is jms? features of jms CTS1
what is meant by UP& DOWN casting in java?  4
What are File and RandomAccessFile classes?  1
diff between abstract methods and interfaces with programing (code) example?  2
what is difference between validation.xml & validation rules.xml? BirlaSoft5
what is the use of finalize()Method please explain with an example  2
How can you debug the Java code? BirlaSoft3
what is the difference between HashMap And HashTable? Hexaware3
can we add two numbers without using arthematic operators? if possible how?  2
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1 Huawei3
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?  6
What is the difference between error and exception and explain in simple words not whatever is given in the book.  6
 
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