Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk 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), respond to polls, upload content and access many other special features. 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 contact us.

legacy classes

This is a discussion on legacy classes within the Java forums, part of the Software Development category; hi, may i know what are the legacy classes...? and where we can use these classes...?...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2009
Junior Member
 
Join Date: Jun 2009
Location: chennai
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
amarnadhb is on a distinguished road
legacy classes

hi,
may i know what are the legacy classes...? and where we can use these classes...?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-30-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,438
Thanks: 15
Thanked 147 Times in 138 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: legacy classes

hai friend,

Legacy means synchronization (more complicated with technology).It an concept to the collection of framework (utill package).

For example: vector , HashTable, etc are legacy classes( synchronized classes).Synchronized classes gives an concept of thread based. If so many request is coming to access a single resources then it will lock all request and will do process one by one with sequence order (FIFO).

Thanks
Deepa
Reply With Quote
The Following User Says Thank You to deepasree For This Useful Post:
  #3 (permalink)  
Old 06-30-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 946
Thanks: 154
Thanked 416 Times in 197 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: legacy classes

Hi,

In java, legacy classes are system components that we continue to work with, even though they may be deprecated, use deprecated methods or sub-optimal programming techniques,

for example ,

Systems may use legacy classes from third party suppliers that are no longer maintained, for which no source code is available.

Ideally, one would replace such legacy classes with contemporary implementations, but sometimes the extent of a system's dependence on legacy classes makes them difficult or un-economical to replace.

In this case, it is often necessary to use adapter classes that enable legacy classes to work with new programming interfaces.

The legacy classes which are defined by java.utilare r.....

1)vector

2)hashtable

3)properties

4)dicitionary

5)stack etc....

Vector is a legacy class that was adapted in java software development kit version 1.2 to integrate it with the more contemporary collections framework. Vector now implements the collection interface.


Thanks & Regards,

Riju.
Reply With Quote
The Following User Says Thank You to rijus For This Useful Post:
  #4 (permalink)  
Old 07-01-2009
Junior Member
 
Join Date: May 2008
Location: Mumbai
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
yrus.exe is on a distinguished road
Re: legacy classes

after reading dis post i was searching in the api for legacy classes ... i couldnt find ne?????
do we have such classes in java?? if yes den in which package .. plz reply!
Reply With Quote
  #5 (permalink)  
Old 07-01-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 946
Thanks: 154
Thanked 416 Times in 197 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: legacy classes

Hi,

It's in Utility package.

Eg:

import java.util.Iterator;
import java.util.Vector;

public class VectorExample {

public static void main(String[] args) {

Vector vector = new Vector();
vector.add("Pacific Ocean");
vector.add("Atlantic Ocean");
vector.add("India Ocean");
vector.add("Arctic Ocean");

for(Iterator iterator = vector.iterator(); iterator.hasNext() {
String oceanName = (String) iterator.next();
System.out.println(oceanName);
}
}
}


Thanks,
Riju.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

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

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
legacy database jaspreetsingh Windows 2 10-18-2008 12:09 PM
Why Classes are made in C++ safderali C and C++ 2 04-12-2008 07:14 AM
classes in jdk1.5 ranjan2k7 Java 1 01-06-2008 04:59 AM
Views of material uploaded from legacy system arulsjc SAP R/3 0 06-30-2007 07:03 AM
Online Classes Arnel Dave Colleges and Universities 5 09-18-2006 04:01 PM


All times are GMT -4. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved