Vector

Vector The underlying data structure is resizable or growable Array. Insertion order is preserve. Duplicate objects are allow. Null insertion is possible. Hetrogenious objects are allow. Vector class implements Serializable, Clonable & RandomAccess interface. Best suitable for frequent operation is retrieval. Worst  choice is frequent operation is insertion or deletion on middle. Every method present […]

Collection Framework

Limitations of Object Array:- ⇒ Arrays are fixed in size i.e once we created an array there is no chance of increasing or decreasing the size our requirement i.e if we don’t know the size in advance, arrays are not recommended to use. ⇒ Arrays can hold only homogeneous data elements. Student [] s = […]

Assignment Operator

Assignments The following is the list of all possible compound assignment operator. + =            & =                  % = – =             | =                 >>> = * =            ^ =                << = / =            >> = In the case of compound assignment operator, the required type casting is performed automatically by the compiler. byte b = 20 […]

Types Cast Operator

Type Cast Operator There are two types of primitive type castings a possible. implicit type casting explicit type casting Implicit Type Casting Compiler is responsible for this type casting. performed automatically where ever we are assigning smaller value to the bigger data type It is also known as Widening  or up casting There is no […]