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. |
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...?...
|
|||||||
|
|||
|
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 |
| The Following User Says Thank You to deepasree For This Useful Post: | ||
|
|||
|
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. |
| The Following User Says Thank You to rijus For This Useful Post: | ||
|
|||
|
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! |
|
|||
|
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| legacy database | jaspreetsingh | Windows | 2 | 10-18-2008 11:09 AM |
| Why Classes are made in C++ | safderali | C and C++ | 2 | 04-12-2008 06:14 AM |
| classes in jdk1.5 | ranjan2k7 | Java | 1 | 01-06-2008 03:59 AM |
| Views of material uploaded from legacy system | arulsjc | SAP R/3 | 0 | 06-30-2007 06:03 AM |
| Online Classes | Arnel Dave | Colleges and Universities | 5 | 09-18-2006 03:01 PM |