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 |
When can we say that threads are not lightweight process in java?
What is treeset in java collection?
What is the main function in java?
Can I learn java in 3 months?
What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?
Can main() method in java can return any data?
What is the best way to findout the time/memory consuming process?
What are the parts of methodology?
Differentiate storage classes on the basis of their scope?
10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
Which collection is thread safe in java?
What is an object's lock and which object's have locks in java programming?