*Filter candidates using TestYourCandidate.com and save 80% time ( saving time for recruiters and interviewers)
*More than 50% candidates can be filtered on Candidate Screening online tests
*Inbuilt exams are available in library, created and tested by experts Try Today...
Q.Does garbage collection guarantee that a program will not run out of memory?
view answer
Q.What is synchronization and why is it important?
view answer
Q.What is daemon thread and which method is used to create the daemon thread?
view answer
Q.What are synchronized methods and synchronized statements?
view answer
Q.If I write System.exit (0); at the end of the try block, will the finally block still execute?
view answer
Q.If I write return at the end of the try block, will the finally block still execute?
view answer
Q.Is it necessary that each try block must be followed by a catch block?
view answer
Q.What is the basic difference between the 2 approaches to exception handling.
1> try catch block and
2> specifying the candidate exceptions in the throws clause?
When should you use which approach?
view answer
Q.What are the different ways to handle exceptions?
view answer
Q.What is the difference between error and an exception?
view answer
Q: What is wrapper class? Explain with example? view answer
Q.What is serialization? Explain with example? view answer
Q.What one should take care of while serializing the object?
view answer
Q. When you serialize an object, what happens to the object references included in the object?
view answer
Q.What happens to the static fields of a class during serialization?
view answer
Q. Objects are passed by value or by reference?
view answer
Q. Primitive data types are passed by reference or pass by value?
view answer
Q. What type of parameter passing does Java support?
view answer
Q.Can a top level class be private or protected?
view answer
Q.What is the default value of an object reference declared as an instance variable?
view answer
Q.What is the difference between declaring a variable and defining a variable?
view answer
Q. What are different types of inner classes?
view answer
The members of an interface are:
1) Those members declared in the interface.
2) Those members inherited from direct superinterfaces.
3) If an interface has no direct superinterfaces, then the interface implicitly declares a public abstract member method m with signature s, return type r, and throws clause t corresponding to each public instance method m with signature s, return type r, and throws clause t declared in Object, unless a method with the same signature, same return type, and a compatible throws clause is explicitly declared by the interface. It is a compile-time error if the interface explicitly declares such a method m in the case where m is declared to be final in Object.