Design - Interview Questions and Answers for 'Amazon' | 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

   



Design - Interview Questions and Answers for 'Amazon' - 2 question(s) found - Order By Newest

Very Frequently asked. Have been asked in HCL Technologies very frequently ( based on 3 feedback ). Among first few questions in many interviews.
  Q1. Differences between abstract class and interface ?Core Java
Ans. Abstract classes can have both abstract methods ( method declarations ) as well as concrete methods ( inherited to the derived classes ) whereas Interfaces can only have abstract methods ( method declarations ).

A class can extend single abstract class whereas it can implement multiple interfaces.

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

   Like         Discuss         Correct / Improve     java   classes   abstract class   interfaces   abstract class vs interface   abstract classes vs interfaces     Asked in 82 Companies      basic        frequent


Related Questions

 What are the different uses of Interfaces in Java ?
 Why can't we have diamond problem with interfaces ?
  Why do we need Thread class even in case we execute thread using runnable interface ?
  What is the difference between List, Set and Map ?

or

What are the different Java Collections Interfaces ?
  What are Marker Interfaces ? Name few Java marker interfaces ?
  Can we declare interface methods as private ?
  What is comparator interface used for ?
  What is the use of runnable interface if we can always create a new thread using Thread class ?
  Which of the following doesn't extend Collection interface ?


 Q2. In a file there are 1 million words . Find 10 most frequent words in that file.Design
 This question was recently asked at 'Amazon'.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     file handling     Asked in 1 Companies


Related Questions

  What is a stream and what are the types of Streams and classes of the Streams?
  Name few File IO related classes and interfaces ?
  Tell something about BufferedWriter ? What are flush() and close() used for ?
  What is Scanner class used for ? when was it introduced in Java ?
  What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
  Which is the abstract parent class of FileWriter ?
  Which class is used to read streams of characters from a file?
  Which class is used to read streams of raw bytes from a file?
  Which is the Parent class of FileInputStream ?
  Difference between Scanner and BufferedReader ? Which one is faster and Why ?



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: