GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Certification  >  Sun
Go To First  |  Previous Question  |  Next Question 
 Sun  |  Question 30 of 38    Print  
why the StringBuffer and the wrapper classes defined as final ?

  
Total Answers and Comments: 2 Last Update: September 15, 2006     Asked by: Raj vardhan Reddy 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 02, 2006 09:00:41   #1  
Jeyalakshmi Member Since: August 2006   Contribution: 4    

RE: why the StringBuffer and the wrapper classes defin...
A class can be declared final if its definition is complete and no subclasses are desired or required.they are handled in different way by jvm at runtime. so both the classes are marked as final
 
Is this answer useful? Yes | No
September 15, 2006 09:43:24   #2  
Lakshmaiah        

RE: why the StringBuffer and the wrapper classes defin...

By defining a class as final we are restricting the one of the main feature of OOP ie., INHERITANCE. But JavaSoft(SUN)  has provided this restricting feature because Java Developers thought that some methods  cannot be modified by the users. Eg. for those are  the methods in String , StringBuffrer ,StringBuilder , all Wrapper classes. As String is a standard class those methods should be as they are as developed by Sun. The user can not be permitted to change the functionality of those methods. If your application needs this type of situation u can decalre your class as final.

The user can't implement the method toUppercase( ) in String class as that it can convert only some of the characters into Uppercase.


 
Is this answer useful? Yes | No

 Related Questions

In interfaces the methods just defined without implementation then what is the purpose of defining the methods?
Read Answers (7) | Asked by : prakash

Why the clone method in object is defined as protected one.Since every class is a subclass of object what is the significance of the protected access modifier
View Question | Asked by : Raj vardhan Reddy

Latest Answer : By defining a class as final we are restricting the one of the main feature of OOP ie., INHERITANCE. But JavaSoft(SUN)  has provided this restricting feature because Java Developers thought that some methods  cannot be modified by the users. ...
Read Answers (2) | Asked by : Raj vardhan Reddy


 Sponsored Links

 
Related Articles

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

Microsoft AJAX Library - C# and JavaScript Classes

C and JavaScript Classes For the purpose of demonstrating a few more OOP related concepts we ll use another class Our new class is named Table and it has two public fields rows columns and one method getCellCount The getCellCount method should return the number of rows multiplied by the number of co
 

Microsoft AJAX Library - JavaScript Classes

JavaScript Classes Not only can JavaScript functions contain other functions but they can also be instantiated This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object oriented programming This is very helpful feature indeed because JavaScript
 

SOA Definitions and Certification

SOA Definitions and Certification Service Oriented Architecture is a design that enables Business and computational resources to be linked together on demand as a means of achieving the results desired for service consumers which may be end users or other services Service Oriented Architecture has
 

C++ Storage Classes

C Storage Classes In this C tutorial you will learn about storage classes types of storage class variables Automatic External and Static explained with examples mosgoogle center Storage classes In the context of scope of variables in functions exists the important concept of storage class What is St
 

C++ Objects and Classes

C Objects and Classes An Overview about Objects and Classes In object oriented programming language C the data and functions procedures to manipulate the data are bundled together as a self contained unit called an object A class is an extended concept similar to that of structure in C programming l
 

Tips for Oracle Certification

Getting an Oracle certification is reliable credential recognized by industries that can accelerate professional development and their productivity. So this article provides some tips for getting this oracle certification.  First one must plan well to allocate their time for prepari
 

Oracle Certification and its Importance

Oracle certifications are valid credential recognized by industry that can help one to succeed in their IT career. Oracle is the largest enterprise software company and to get the oracle certification from this company is really a great credit to career.  The Oracle Certification Progr
 

Insight on SAP Certification

The demand for SAP remains strong which makes experience as the paramount in finding work as an SAP consultant or programmer and along with this certification can provide concrete evidence of SAP expertise. The other main reason for certification playing an important role is because the certified
 

VoiceXML Certification Opportunities

At first, the certification program will place an emphasis on the platforms of VoiceXML. The tools and applications would be tested, and to pass the certification program, the system must be in compliance. The process of certification for VoiceXML products will be processed by the members of the Fo
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape