Difference between abtsract & final
Answer / naveen
abstract and final are java modifiers. abstract is applied
to only class and methods.If class is abstract we cannot
instantiated of the class.If method is abstract it cannot
have body.abstract class contains concreate methods and
abstract methods.
final is a java modifier . It can be applied to class ,
variables, methods.If class is final we cannot inherited the
class. If variable is final we cannot change the value of
the variable. If method is final we cannot override that method.
| Is This Answer Correct ? | 14 Yes | 0 No |
Can we declare a static variable inside a method?
Which method cannot be overridden in java?
What is a boolean output?
give me the answer of this code class A extnds String This code we can write r not in Java? Explain?
What is the use of math abs in java?
Explain about Superclass and Subclass?
What do you mean by constructor?
Explain the reason behind ending a program with a system.exit(0)?
What is the use of arraylist in java?
Name few java.lang classes introduced with java 8 ?
What is the benefit of inner classes in java?
Are floats faster than doubles?