satellite03
IS-IT--Management
hi, is there any difference between Vector and arrayList. both of them are designed for holding objects and both of them have similar methods for manipulation. is there any difference that arrayList can not do or vice-versa ?
does static method of a class always returns objects? java API has many static methods which returns objects.
AND for this code below >
thanks
does static method of a class always returns objects? java API has many static methods which returns objects.
AND for this code below >
Code:
interface A
{
// some code
}
class C extends A
{
//some stuff
}
class B extends C implements A
{
//stuffs
}
A someobject = new B(); //[COLOR=blue] is it possible polymorphically ? [/color]