Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2008, 04:05 PM
Member
 
Join Date: Jan 2008
Posts: 2
vagarwal_mca is on a distinguished road
which are the final classes in the java APi
Hello All,

I want to know which are the final class defined in java API and also how to instance a class without using the new keyword
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-10-2008, 03:11 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
how to instance a class without using the new keyword
Static methods, eg,
AffineTransform at = AffineTransform.getTranslateInstance(x, y);
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-10-2008, 04:47 AM
rpwtdj's Avatar
Member
 
Join Date: Dec 2007
Posts: 15
rpwtdj is on a distinguished road
Send a message via MSN to rpwtdj
The 'java.lang.String' is a final class.
You can use 'instance()' method of factory to create a class instance.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What kinds of classes needs to be final. roots New To Java 3 01-03-2008 02:54 PM
Help On Computer Science Final!!!! Java Program Help!!!! BSOS New To Java 1 12-11-2007 06:54 AM
Calling jar classes from java executable SteM Advanced Java 1 11-27-2007 10:21 AM
Java Wrapper Classes JavaForums Java Blogs 0 08-04-2007 04:24 AM
Running java classes with XML ai_2007 Advanced Java 1 06-29-2007 05:20 PM


All times are GMT +3. The time now is 01:56 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org