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. |
|
| ||||
Core java - Interview Questions and Answers for 'Cricbuzz' - 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. | ||||
| ||||
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 ? | ||||
Frequently asked in Cognizant (CTS) | ||||
| ||||
Ans. Storing the state of an object in a file or other medium is called serialization. Classes can communicate only if they are built together ( as they need Byte code for communication ). What if we need to enable communication between different applications ( i.e they have been built independently or even they reside at different locations ), We need a mechanism that will transfer the Bean state to a Medium than can be transferred to the receiving application. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   oops   serialization Asked in 18 Companies basic   frequent | ||||
Try 1 Question(s) Test | ||||
Related Questions | ||||
Can we declare static variables as transient ? | ||||
What is the use of Transient Keyword ? | ||||
Which elements of a class are ignored during serialization ? | ||||
Can we serialize static variables ? | ||||
What one should take care of, while serializing the object? | ||||
serialization and deserialization of singleton class | ||||
Difference between Serialization and Deserialization ? | ||||
What is an Externalizable interface ? | ||||
Difference between serializable and externalizable interface ? | ||||