Is it possible to write static method in abstract class?
justyfy your answer?
Answers were Sorted based on User's Feedback
Answer / prasad
Yes it is possible to write the Static Method in abstract
class
Ex:DriverManger.getConnection();
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / priyanjan
It is absolutely possible to write static method in
abstract class because static methods are class specific
not object specific and they can with name of class.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / n sridhar reddy
ya we can write static method in abstract class
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / krishna
Yes it is possible to write the Static Method in abstract
class, why because every static method loads when the class
is executed all the static members of a class is executed.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / shan
DriverManager is not n abstract class.
Static for class scope stands in as an answer
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of anonymous inner classes ?
using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.
What is nested top-level class?
What is the purpose of java?
What are wrapped classes in java programming?
What is multithreading ???? How to stop multithrading in java????
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
Print Vertical traversal of a Binary Tree.
How does hashset work in java?
How to create a thread in java?
State some situations where exceptions may arise in java?