what is the difference between abstract class & interface.
Clone interface is marker interface which doest contains abstract methods. I want to say an empty interface.
Features of an Abstract Class1. Abstract Class cannot be instantiated.2. An Abstract Class must be inherited.3. It may have Concrete Methods.4. It may have Abstract Methods.5. An Abstract Method of an...
what is the difference between == & .Equals
The "==" operator can be used to test primitive values for equality, and can also be used to determine if two object references point to the same underlying object. For Java objects, the equals meth...
equals() method is expected to check for the equivalence the contents of the objects. Whereas the == operator is expected to check the actual object instances are same or not."j...
Can a main() method of class be invoked in another class
Yes, it is possible for these you should declare it as public.
Yes Obviously....
Static : Move the variable/methods/class during HDD to RAM. ie; they are available without instantiating the class, by creating an object of that class nd access its methods,members.
Final : for Preventing the inheritance further ie; the class with final word as prefix cannot be extend further!
static variable allocates the memory as globally.It won't reallocate the memory while running.It initializes the memory for the variable only once.final variable tells the variable is final means ...