Interview Questions and Answers for 'Apple' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Apple' - 6 question(s) found - Order By Rating

 Q1. What is an applet ?Java EE
 This question was recently asked at 'American International Group (AIG)'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     applet     Asked in 1 Companies      basic        rare


 Q2. What is an applet ?Core Java
Ans. Applet is a J2EE component or a tiny application that gets executed in a widget engine ( like browser )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     applet


Frequently asked to fresh graduates.
  Q3. What is a Deadlock ?Operating System
Ans. When two threads are waiting each other and cant precede the program is said to be deadlock.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   threads   multi threading   operating system   deadlock  concurrency     Asked in 23 Companies      basic        frequent


 Q4. What is the order of method invocation in an applet?
Ans. public void init()
public void start()
public void stop()
public void destroy()

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   java ui   applet   swing   awt


 Q5. What is an applet? What is the lifecycle of an applet?
Ans. Applet is a dynamic and interactive program that runs inside a web page displayed by a java capable browser.

Lifecycle methods of Applet -

init( ) method - Can be called when an applet is first loaded
start( ) method - Can be called each time an applet is started
paint( ) method - Can be called when the applet is minimized or maximized
stop( ) method - Can be used when the browser moves off the applet's page
destroy( ) method - Can be called when the browser is finished with the applet

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   java ui   applet   swing   awt   lifecycle of applet   technologies


 Q6. Develop a simple paint like program using applets ?
Ans. Follow the below steps:

1- import the required class and packages.
2- create a class Drawtest for creating an applet.
3- initialize panles and controls int the init() method.
4- Define the destroy() method to destroy the same.
5- create an instance for draw test class and call the init(0 and start() methods in the main method)).
6- Add a new frame to the applet window and resize it to 300x300.
7- Declare a method get applet infor to display the applet information.
8- Declare two constants LINES , POINTS which are going to be the modes.
9- Define the paint method and perfoem the required operations.
10- Display the result according to the mode selected.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     applets   java gui   java ui



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: