Objects that subclass the Observable class maintain a list of observers. When anObservable object is updated it invokes the update() method of each of its observers tonotify the observers that it has changed
Latest Answer : Observer observe only those class which are Observable. ...
The Collections API is a set of classes and interfaces that support operations oncollections of objects.
Latest Answer : Collection API's are a group of classes where we can store more then one objects in as a single unit. Collection give some useful API where we can directly implement the Data structures. ...
The List interface provides support for ordered collections of objects.
Latest Answer : The list interface extends Collection and declares the behaviour of a collection that stores a sequence of elements. Elements can be inserted or accessed by their position in the list, using a Zero-based index. Alist may contain duplicate elements. ...
The Vector class provides the capability to implement a growable array of objects
Latest Answer : A vector implements dynamic array, which can grow and shrink dynamically.It is similar to Arraylist with a difference that vector can be synchronized. it also contain some legacy methods. ...
The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out.
Latest Answer : While dealing with (+)ve numbers there is no difference between >>> and >> operators.Both operators shift zeros into the upper bits of a number.The difference arises when dealing with (-)ve numbers.Since (-)ve numbers,(-)ve numbers have ...
The sizeof operator is not a keyword.
Latest Answer : No,sizeof is not a keyword. ...
Wrapped classes are classes that allow primitive types to be accessed as objects.
Latest Answer : Wrapped classes are used to Primative data types as an Object.EX: int val1; val=10; val=new Integer(); ...
Garbage collection does not guarantee that a program will not run out of memory. It ispossible for programs to use up memory resources faster than they are garbage collected.It is also possible for programs
Latest Answer : The object is eligible for garbage collection only if there is no strong reference to the object. An exception to this is island of references(where all objects point to each other).And you should never write your significant code in the object's finalise ...
The default value of an String type is null.
Latest Answer : We use overriding when method avaliable in super class doesnot satisfyour requirement.That is To extend the alreadyavailable feature wew use overloading.If we require the new functionality other than, what we already have we go for Overriding. ...
If an expression involving the Boolean & operator is evaluated, both operands areevaluated. Then the & operator is applied to the operand. When an expression involvingthe && operator is evaluated, the
Latest Answer : & -> for bitwise operation&&-> for logical comparison ...