Can we have a abstract class withought any method? What is a
purspose of this?
Answers were Sorted based on User's Feedback
Answer / malli
Yes,we can able to keep abstract class without any any methods.
purpose: Abstract class support for all unimplemented
methods (or) all concrete methods (or) some concrete methods
and abstract methods. so based on requirement we can use
abstract class.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sneha
Ya we can have an abstract class withought any method...It helps to prevent it from being instantiated...
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sourav kumar verma
it may or may not include abstract methods. Abstract classes
cannot be instantiated, but they can be subclassed.
Is This Answer Correct ? | 0 Yes | 1 No |
What is the purpose of static methods and variables?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an <applet> tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.
What is java used for?
Why is stringbuffer thread safe?
What is a newline character in java?
if u open login & logout ,how can udisplay the timelogin & logout members ?
WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?
What is the platform?
List methods available in Java Queue interface
How do you create a null object?
What are the access modifiers in java?
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread?