![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program? Latest Answer : let us analyze this in real world OO model:Can a puppy(small dog) extends Cow and Dog? It should be only puppy extends Dog, not both. Puppy(small dog) can't have charectrestics of Cow and Dog ... Read Answers (5) | Asked by : Naresh Tags : Inheritance give me answer Latest Answer : public class CSingleton { private static CSingleton inst= null;private static int count=0;protected CSingleton() { ... Read Answers (5) | Asked by : chandu give me answer Latest Answer : We can use clone() method to create another instance of a singleton class.Example:SingletonObjectClass obj = SingletonObjectClass.createSingletonObject();SingletonObjectClass clone = (SingletonObjectClass) obj.clone();java.lang.Object class has a clone ... Read Answers (1) | Asked by : chandu Latest Answer : I think this is the one of the way to return two refference fro one ObjectClassA extends from ClassBthenin ClassBwe can write like thisClassB b=new ClassB();this is one andClassA a= new ClassB();this is twoof course at complie time it seems to be same ... Read Answers (1) | Asked by : chandu It is a saying that static methods in JAVA programs should be minimised. What is the reason for this? any problems arise or there is any performance measures to be looked into it. br />1.what is oracle.2.what is major differenece oracle8i and oracle9i.4.tell me some thing ur self.5.please tell me about oops.6.what is single inheritance.7.what is multiple inheritance.8.can java support Latest Answer : how do u prove that abstrace class cannot instantiate directly? ofcourse abstract class can have constructor,but the keyword "abstract" denotes that the class or method is not yet constructed fully.So if we use abstract keyword ... Latest Answer : Abstract Class:- it has abstract methods and non-abstract methods. Abstract Methods:- this methods has no body. these final and variables of these methods are static, final and protected. ... Tags : Abstract Latest Answer : Bez byte code genrated and understtod same on each compiler ... I need some more information about interface. For Example there is no any functionality inside the method which is declared in any interface. Then why i want to implement that interface to my class. 2. Statement is an interface. When i say stmt.executeQuery(). I am getting the records in my ResultSet. How it is possible?.. since there is no functionality insid the methods which is declared in Statement Interface. What is happning here? An idea
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||