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 |
Why destructor is not used in java?
How is a variable stored in memory?
Describe OOP in java?
What is the += operator called?
What do you understand by garbage collection in Java? Can it be forced to run?
What are data types in programming?
What is the main functionality of the remote reference layer?
how can u create the object with out new operator
Can main() method in java can return any data?
What does it mean that a method or field is “static”?
What is a method in java?
who was the founder of java
32 Answers CTS, HCL, ProKarma,