Describe the final keyword, JAVA Programming

Describe the final keyword ?

The final keyword is used in various different contexts as a modifier meaning in which what it modifies cannot be changed in a few sense.
final classes

You will notice in which a number of the classes in Java library are describe final, e.g.

public final class String

This means this class will not be subclassed, and informs the compiler in which it can perform certain optimizations it or else could not. It also provides some advantages in regard to security and thread safety.

The compiler will not let you subclass any class in which is declared final. You probably won't need or required to declare your own classes final though.

Posted Date: 5/16/2013 2:05:56 AM | Location : United States







Related Discussions:- Describe the final keyword, Assignment Help, Ask Question on Describe the final keyword, Get Answer, Expert's Help, Describe the final keyword Discussions

Write discussion on Describe the final keyword
Your posts are moderated
Related Questions
What restrictions are placed on method overriding? Overridden methods must have the similar name, argument list, and return type. The overriding method may not limit the access

Project Description: Modules of software: 1 - Serial RS232 comm port comunication 2 - NanoHTTPD serving some processed pages 3 - System tray application to indicate sta

Implement a class  Book  (Book.java). A book will have three instance variables: a  title  (a String, for example: "Big Java" or "The Hitchhiker's Guide to the Galaxy"), an  author

Here are some features of spring:- ? Lightweight: spring is lightweight when it comes to size and transparency. The essential version of spring framework is around 1MB. And t

I want Crime Management website Project Description: It is a web based project build in J2EE as front end and Oracle as back end for peoples so they will register complaints

Journal of how you came to AUB Write a web application using JavaScript, XML and CSS that contains a journal of major events and places on your journey to Bond University. The

JAVA, JSF(primefaces), SPRING Application Support Project Description: We require some one to be part of our team's new development , it's small application but in future, ch

I need help setting up and fleshing out a basic outline/structure for a basic Java web app using an MVC pattern

Write a program to add integer value? class AddInts { public static void main (String args[]) { int i = 1; int j = 2; System.out.println("i is " + i); System.out.println("

If we have 2 tables like bankcustomer(cid,cname,addr,acc_type) and customeraccount(cid,amount). How to Deposit amount into the given customer account.?