Is it possible to write static method in abstract class?
justyfy your answer?

Answers were Sorted based on User's Feedback



Is it possible to write static method in abstract class? justyfy your answer?..

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

Is it possible to write static method in abstract class? justyfy your answer?..

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

Is it possible to write static method in abstract class? justyfy your answer?..

Answer / n sridhar reddy

ya we can write static method in abstract class

Is This Answer Correct ?    6 Yes 1 No

Is it possible to write static method in abstract class? justyfy your answer?..

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

Is it possible to write static method in abstract class? justyfy your answer?..

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

Post New Answer

More Core Java Interview Questions

What is hash method?

1 Answers  


Write a program to search a number in the given list of numbers.

0 Answers   Honeywell,


What is java string pool?

0 Answers  


Define jre i.e. Java runtime environment?

0 Answers  


Is &&= a valid Java operator?

2 Answers  


Difference between JVM and JRE?

3 Answers   Amdocs,


In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ?????

4 Answers   Kanbay,


What are the advantages of arraylist over arrays?

0 Answers  


What is the multi-catch block in java?

0 Answers  


Is there is any error if you have multiple main methods in the same class?

10 Answers   Infosys, Wipro,


What do you mean by global variable?

0 Answers  


What is the difference between Integer and int?

10 Answers   Infosys,


Categories