What we have to do, when we don't want to implement all
methods of an interface?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
instead of using interface make use of abstract class at
that moment
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / aditya mohata
we have to declare that class as an abstract class.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / somasundar m
We have to declare that class an abstract class by
declaring that particular unimplemented methods as abstract
method. And you can not create an instance for this class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vinaygeddannavar
YOU SHOULD NOT GO FOR THE INHERIT IN CHILD SPECIFIC CLASS
THATS THE BEST WAY... OTHERWISE IF YOU MAKE IT AS ABSTRACT
CLASS AGAIN YOU NEED TO INHERIT THAT CLASS IN CHILD CLASS OK.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mallikarjun
Use another called implementing interface and that class can
be inherited to sub class. This process is called adapter
pattern
| Is This Answer Correct ? | 0 Yes | 0 No |
Does java linked list allow duplicates?
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.
why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?
There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation
Can we sort list in java?
How do you clear an arraylist in java?
How do you represent a space in regex java?
what do you mean by stream pipelining in java 8? Explain
What are the common uses of "this" keyword in java ?
What is lazy initialization in java?
What are Advatages of Overloading and Overridding.
write a program to create an vector with string(add,remove) operation.and value should be enter through keyboard.