How can final class be used?

Answer Posted / rajkumar ksr college

interface Used to declare a special type of class that only
contains abstract methods, constant ( static final ) fields
and static interfaces. It can later be implemented by
classes that declare the interface with the implements
keyword
http://en.wikipedia.org/wiki/Java_keywords
Class verifier from JDK 1.2 beta 4 also makes it impossible
for JavaGO to inline constructors and replace virtual calls
with non-virtual.JavaGO has special options -not-inline-
constructor and -not-use-invokespecial to disable such
optimizations.Option -not-inline-virtual prevents JavaGO
from inlining virtual methods (while it can still inline
final and static methods)and in conjunction with -not-use-
invokespecial option makesoptimization performed by JavaGO
really safe (such classes can be used with other classes
not presented to JavaGO), but looks like such
optimizationsalso can be done by Java compiler with -O
option.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array pointers ?

607


What is the difference between I ++ and ++ I in java?

507


Why set is used in java?

573


What is Session reduplication and how its done?

1569


What is finalize method?

585






When do I need to use reflection feature in java?

627


What is the use of set in java?

614


What is the arraylist in java?

534


What are instance variables?

619


How a variable is stored in memory?

507


What is meant by class and object in java?

559


What is a nullable field?

582


What does @param args mean in java?

556


Why collection is called framework in java?

540


What do heavy weight components mean in java programming?

527