Java - Interview Questions and Answers for 'Daffodil' | 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

   



Interview Questions and Answers for 'Daffodil' - 3 question(s) found - Order By Newest

 Q1. Can you give a real world example of Encapsulation and Abstraction ?Core Java2016-05-29 13:47:31

Ans. Car Engine is an example of encapsulation and abstraction. You ignite the car using an interface called starter and least bothered about how the tire actually moves (This is abstraction). The engine encapsulates the complete process to itself only and doesn't allow you to start the other components like the radiator etc ( this is excapsulation )

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

   Like      Discuss      Correct / Improve     encapsulation  abstraction  oops  oops features  java features     MAQ Software  Daffodil Software  Quickstart Global  Alliance Global Services  InfoStretch  Intelligrape  Prowareness  Support.com  Cognizant (CTS)  BNT SOFT  Clairvoyant TechnoSolutions  Suyati Technologies  3DPLM Software Solutions


Related Questions

 Which of the following Java feature promotes access protection or Hiding ?

a. Inheritance
b. Encapsulation
c. Abstraction
d. Composition
 Explain OOPs
 Define encapsulation in Java ?
 Give an example of how Object Oriented Programming Concepts can be implemented.
 Which of the OOP's features facilitate dependency injection ?


 Q2. Explain static blocks in Java ?Core Java
Anonymous
Ans. A static initialization block is a normal block of code enclosed in braces, { }, and preceded by the static keyword. Here is an example:

static {
// whatever code is needed for initialization goes here
}

A class can have any number of static initialization blocks, and they can appear anywhere in the class body. The runtime system guarantees that static initialization blocks are called in the order that they appear in the source code.

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

   Like      Discuss      Correct / Improve     java   oops   static   static block     Daffodil  Visa Inc  Logica  DataMetica  Tech Mahindra      basic        frequent


Related Questions

  How can we run a java program without making any object?
  Similarity and Difference between static block and static method ?
  How can we create objects if we make the constructor private ?
  Is it possible to compile and run a Java program without writing main( ) method?
  Will the static block be executed in the following code ? Why ?
  Will static block for Test Class execute in the following code ?
  Can we initialize member variables within static block ?
  How can we execute a Java class independently if it doesn't have a static main method ?


 Q3. What is a finalize method ?Core Java
Anonymous
Ans. finalize() method is called just before an object is destroyed.

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

   Like      Discuss      Correct / Improve     java   oops   finalize   garbage collection   basic interview question     Daffodil Software      basic        frequent

Try 1 Question(s) Test


Related Questions

  Does garbage collection guarantee that a program will not run out of memory?
  Describe, in general, how java's garbage collector works ?
  Why Char array is preferred over String for storing password?
  Should we override finalize method ?
  What are strong, soft, weak and phantom references in Java ?
  Can we call the garbage collector explicitly ?
  What does String intern() method do?
 Let's suppose we have an to destroy objects, Design a program to implement garbage collection ?
  What is a daemon thread? Give an Example ?




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

2 person from Ashburn are looking for questions for 'Daffodil'. Connect with them to better prepare for your interview.
X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: