Is it compulsory to have atleast one abstract method in
abstract class?

Answer Posted / chellammal

No. It is not compulsory that an abstract class
should have atleast one abstract method.

One can declare a class as abstract still with full
implementation of methods. This avoids the instantiation
the class

Is This Answer Correct ?    34 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster call by value or call by reference?

497


What does regex mean?

561


What is anti pattern in cyber security?

517


Can java list be null?

543


What’s a deadlock?

605






What is scanner in java?

533


What is internal iteration in java se 8?

623


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1579


how we can make a read-only class in java?

537


Is it possible to use string in the switch case?

550


What is regex java?

556


What is a java lambda expression?

547


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

9177


How does hashset works in java?

526


Why are parameters used in functions?

525