|
Related Questions |
View Answer |
|
What happen if we write many curly braces in main method and write println method inside it .program will compile or not?
|
View Answer
|
|
How to track "memory leak" and how to prevent it in java?
|
- Java Interview Questions & Answers">
View Answer
|
|
What is serialization?What is transient?What is the default value of a transient variable?
|
View Answer
|
|
can we write return statement in try catch or finally block. suposse we write return 0 in try catch or finally. can we do.
|
View Answer
|
|
what is assert function what are the type how they are used with an example
|
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
|