use of static,final variable
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 ...
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.
Career Options for BCA Graduates
BPO Career for BTech Graduates
What is the role of a mechanical engineer in the Software Industry?
How do you handle workplace problems?
How do you deal and overcome major challenges?
What do you do when someone criticizes you?
What will you do when you are not able to get your message across to your audience?
Have you gone above and beyond your job description?
Do you find yourself busy most of the time? Why?
How do you approach a problem?
Ask Interview Question?
Have Career Question?
Ask Only Career questions.