GeekInterview.com
Answered Questions

use of static,final variable

Asked By: Interview Candidate | Asked On: Aug 30th, 2005

Answered by: Mohan Raja Gadikota on: May 31st, 2011

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!

Answered by: muralidhar.9e on: Nov 22nd, 2010

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.

Asked By: Interview Candidate | Asked On: Aug 28th, 2005

Answered by: laxminarsaiah ragiri on: Dec 27th, 2011

Clone interface is marker interface which doest contains abstract methods. I want to say an empty interface.

Answered by: Mohan Raja Gadikota on: May 31st, 2011

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

Asked By: Interview Candidate | Asked On: Aug 18th, 2005

Answered by: JBUG on: Jan 28th, 2012

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...

Answered by: laxminarsaiah on: Dec 27th, 2011

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

Asked By: Interview Candidate | Asked On: Sep 1st, 2005

Answered by: LAXMINARSAIAH RAGIRI on: Dec 27th, 2011

Yes, it is possible for these you should declare it as public.

Answered by: sivakumar.java on: Jun 12th, 2011

Yes Obviously....

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: