Search Interview Questions
| 3356 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. No. It gives the error "Cannot Instantiate the type Calendar". Calendar is an abstract class and hence Calendar object should be instantiated using Calendar.getInstance().|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   date   calendar   abstract class   yes-no|
|Differences between abstract class and interface ?|
|If an Abstract class has only abstract methods, What's the difference between such a class and an interface ?|
|Difference between Abstract and Concrete Class ?|
|What are the design considerations while making a choice between using interface and abstract class ?|
|How is Abstraction implemented in Java ?|
|Difference between Base Class, Derived Class , Abstract Class and Concrete Class ?|
|What is an abstract class ?|
|Shall we use abstract classes or Interfaces in Policy / Strategy Design Pattern ?|
|Is java.util.Date an abstract Class ? Is java.util.Calendar an abstract Class ?|