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  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 454 of 493    Print  
Difference Between Collection and Legacy classes
What are the difference between Legacy classes and Collection other than Synchronized?


  
Total Answers and Comments: 2 Last Update: February 11, 2008     Asked by: Senthilkumarb 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 10, 2008 10:59:07   #1  
satyd Member Since: January 2008   Contribution: 3    

RE: Difference Between Collection and Legacy classes
Legacy classes are classes which exist to provide forwards compatibility to existing programs, but for which there are better alternatives.
Some are like Vector, Stack, HashTable. All of which are synchronized.

Use ArrayList in stead of Vector if you don't want thread safe for the collection whenever you add/remove/access objects at end and middle of collection.
Same way use HashMap in stead of HashTable

 
Is this answer useful? Yes | No
February 11, 2008 06:18:03   #2  
sampra Member Since: February 2008   Contribution: 279    

RE: Difference Between Collection and Legacy classes
legacy class are syncronized by defult where as collection's member are not syncronized by deflt
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : When Java was originally developed, the JDK shipped with a mark-and-sweep garbage collector. A mark-and-sweep garbage collector proceeds in two phases: Mark: identifies garbage objects Sweep: reclaims the memory for the garbage objectsGarbage objects ...

Latest Answer : An advantage of this scheme is that it can run in small chunks of time closely interwoven with the execution of the program. This characteristic makes it particularly suitable for real-time environments where the program can't be interrupted for very ...

Can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?

Latest Answer : let us analyze this in real world OO model:Can a puppy(small dog) extends Cow and Dog? It should be only puppy extends Dog, not both. Puppy(small dog) can't have charectrestics of Cow and Dog ...
Read Answers (5) | Asked by : Naresh

Latest Answer : No you cannot start garbage collection by your own.By executing System.gc() you just b sure that GC will b run, but when cannot be told.  ...
Read Answers (3) | Asked by : chandu

Design Pattern means how u r approaching the problem.Architecture means how the data is flowing in your application 
Latest Answer : design pattern howarch what ...
Read Answers (4) | Asked by : Praveen

Latest Answer : No thats not true. Java has a byte code editor too.. Refer : http://www.cs.ioc.ee/~ando/jbe/ ...
Read Answers (6) | Asked by : Beena

What is the difference between an object and an instance? And give me a real time example to differentiate these two?
Read Answers (8) | Asked by : Beena

br />1.what is oracle.2.what is major differenece oracle8i and oracle9i.4.tell me some thing ur self.5.please tell me about oops.6.what is single inheritance.7.what is multiple inheritance.8.can java support 
Latest Answer : how do u prove that abstrace class cannot instantiate directly?    ofcourse abstract class can have constructor,but the keyword "abstract" denotes that the class or method is not yet constructed fully.So if we use abstract keyword ...
Read Answers (10) | Asked by : rajjava

Latest Answer : Abstract Class:- it has abstract methods and non-abstract methods. Abstract Methods:- this methods has no body. these final and variables of these methods are static, final and protected.  ...
Read Answers (2) | Asked by : Beena
Tags : Abstract


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

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
 

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
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

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
 

What is Data Collection

A database can be vast shared collection composed of data which are logically related to each other. Businesses rely heavily on data as they are Databases are used for managing the business day to day tasks so Data Collection happens every single day. Collection of data may seem a simple and trivial
 

What is Data Collection Time

Modern Relational Database Management Systems can be configured to collect data at certain events.  In a business, some of the events are sale, order, deposit, pay, request and many more. Events are really business activities in a company.  Big companies, in order to gain competiti
 

What is Data Collection Frequency

Data Collection Frequency, just as the name suggests refers to the time frequency at which data is collected at regular intervals. This often refers to whatever time of the day or the year in any given length of period. In a data warehouse, the relational database management systems continually ga
 





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