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

Search Java Interview Questions


 2098 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Label / Company      Label / Company / Text

   



Apple


   




Interview Questions and Answers for 'Apple' - 5 question(s) found - Order By Newest

Frequently asked to fresh graduates.
  Q1. What is a Deadlock ?Operating System
Anonymous
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     Lime Wire  Perfect Sense  QuantCast  Aequitas NEO Exchange  Akuna Capital  Juniper Networks  Casale Media  Netflix  NetApp  Apple  AIG  Cpart  SnapStream Media  Cumulus Systems  Wissen Infotech  HedgeServ Corp  KeyIdeas Infotech  Verint Systems  BlackBerry  EverQuote      basic        frequent


 Q2. What is the order of method invocation in an applet?
Admin
info@buggybread.com
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


 Q3. What is an applet? What is the lifecycle of an applet?
Admin
info@buggybread.com
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


 Q4. Develop a simple paint like program using applets ?
Ameera
amiratalzain94@gmail.com
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


 Q5. What is an applet ?Core Java2017-01-23 12:52:57

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




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

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:
         

X Close this

4 person from are looking for questions for 'Apple'. Connect with them to better prepare for your interview.Click here and post a message

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: