|
Related Questions |
View Answer |
|
I want to know output of this program and the flow also
public class Aquestion { private int i = giveMeJ(); private int j = 10; private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } }
|
View Answer
|
|
Scope Variables
|
View Answer
|
|
Can You catch the Error?
2. Difference between compiletime exception and runtime exception?
3. How you throw user defined exception?
4. How you handle throwable while using exceptions ?
5. What are the methods available in Object ?
6. Is there any methods available in serialization ?
7. How you seralize an Object ?
8.How you get the serialized object ?
9. Any methods available in deseralization ?
|
View Answer
|
|
i want to know the difference between these two programs mean the flow /*public class Aquestion { private int i = giveMeJ(); private int j = 10; private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } } */
public class Aquestion { private int j = 10; private int i = giveMeJ();
private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } }
|
View Answer
|
|
How we can implement the constructer nesting in java
|
View Answer
|
|
Why single inheritance cannot be use in java/why we alwayz use multiple inheritances?
|
View Answer
|
|
What is the order of intialization of variables in Java.
|
View Answer
|
|
What is the difference between Inheritance and Aggrigation?
|
View Answer
|
|
What are some alternatives to inheritance?
|
View Answer
|
|
Which on is best string or string buffer?which one is mutable and immutable?
|
View Answer
|
|
It is essential to catch all types of exceptions
|
View Answer
|
|
In what situations we can use innerclass and anonymous class
|
View Answer
|
|
What is serilization and deserilization
|
View Answer
|
|
What does validate() pack() mean in Frames
|
View Answer
|
|
What is Weak reference and Soft reference in java?
|
View Answer
|
|
When, where and why we are using overloading and overriding???
|
View Answer
|
|
wat is the disadvantage of threads?
|
View Answer
|
|
can dead thread restart?
|
View Answer
|
|
Why String is not a primitive data type
|
View Answer
|
|
As the Swings have more advantages over the AWT.. Why still in market are they using AWTs?? plzz..i want answer..in many interviews they asked me the same.
|
View Answer
|