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 object in java?

524


How do generics work in java?

516


State two differences between C and Java.

689


What if static is removed from main method?

566


if u open login & logout ,how can udisplay the timelogin & logout members ?

1748






What is pangram in java?

507


What is the use of default method in interface in java?

545


Can you sort a list in java?

520


What is parsing and its types?

581


how to create multithreaded program? Explain different ways of using thread? : Java thread

523


What is the purpose of tostring() method in java?

547


what is daemon thread and which method is used to create the daemon thread? : Java thread

523


How does hashset work in java?

561


How are the elements of a gridbaglayout organized?

540


What is unicode datatype?

521