can abstract class have constructor how can you achive
this ?
Answers were Sorted based on User's Feedback
Answer / rajasekharreddy.y
Yes abstract class must have the constructor, these
constructor we can achive by creating the instance of the
concreate subclass of the abstract class.
Is This Answer Correct ? | 14 Yes | 2 No |
Answer / bhargava
You cannot crate the constructor for an abstract class
directly. But you can create constructor for subclass for
an abstract class by making new class sub class for the
abstract class.
Is This Answer Correct ? | 1 Yes | 7 No |
Why do inner class cannot have static declaration except static nested class?
Do you know why doesn't the java library use a randomized version of quicksort?
What is the difference between path and classpath variables?
Can we able to pass objects as an arguments in java?
What is illegal identifier in java?
What is meant by structural programming?
What is command line argument
What are the benefits of immutable objects?
What are the problems faced by java programmers who don't use layout managers?
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 are keyboard events?
Explain different ways of passing arguments to sub-routine?