![]() 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 : Firstly take the User input as String using the BufferedReader API.Call br.readLine();Once you get the input Use .ValueOf method for conversion. Eg: String MyString; BufferedReader br = ............; MyString = br.readLine(); ... Read Answers (6) | Asked by : Prashu 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 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 : 8.can java support multiple inheritance.java support multiple inheritance for interfaces not fro classes25.what is difference between procedure and functions.function returns only one value where as procedure returns more than one value ... Latest Answer : Bez byte code genrated and understtod same on each compiler ... Latest Answer : C++ can be used in java program by using Native API. There are 4 types of drivers in JDBC. Native API/Partly java driver is one of the type, which is used to connect the C++ code in Java Program ... Latest Answer : we can write our own exceptions by extending them either from Throwable or from Exception.class Example1{ public static void main(String[] args) throws MyException { ... Read Answers (4) | Asked by : chandu plz give answer Latest Answer : only main thread execute at that time ... Read Answers (8) | Asked by : Shajahan
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||