Posts

Exception handling Interview Questions for Fresher and Experienced

1. What do you mean by Exception? 2. How many types of exceptions in java? 3. What is the difference between Exception and error? 4. What is the difference between checked Exception and un-checked Exception? 5. Checked exceptions are caused by? 6. Unchecked exceptions are caused by? 7. Errors are caused by? 8. Is it possible to handle Errors in java? 9. What the difference is between partially checked and fully checked Exception? 10. What do you mean by exception handling? 11. How many ways are there to handle the exception? 12. What is the root class of Exception handling? 13. Can you please write some of checked and un-checked exceptions in java? 14. What are the keywords present in Exception handling? 15. What is the purpose of try block? 16. In java is it possible to write try with out catch or not? 17. What is the purpose catch block? 18. What is the difference between try-catch? 19. Is it possible to write normal code in between try-catch blocks? 20. What are ...

Packages Interview Question for fresher

1. What do you mean by package and what it contains? 2. What is the difference between user defined package and predefined package? 3. What are coding conventions must fallow while declaring user defined package names? 4. Is it possible to declare motile packages in single source file? 5. What do you mean by import? 6. What is the location of predefined packages in our system? 7. How many types of imports present in java explain it? 8. How to import individual class and all classes of packages and which one is recommended? 9. What do you mean by static import? 10. What is the difference between normal and static import? 11. Is it possible to import multiple packages in single source file? 12. Is it possible to declare multiple packages in single source file? 13. I am importing two packages, both packages contains one class with same name at that situation how to create object of two package classes? 14. If we are importing root package at that situation is it possible to ...

OOPs Interview Questions for Fresher and Experienced

1) What are the main building blocks of oops? 2) What do you mean by inheritance? 3) How to achieve inheritance concept and inheritance is also known as? 4) How many types of inheritance in java and how many types of inheritance not supported by java? 5) How to prevent inheritance concept? 6) What is the purpose of extends keyword? 7) What do you mean by cyclic inheritance java supporting or not? 8) What is the difference between child class and parent class? 9) What is the root class for all java classes? 10) Inside the constructor if we are not providing this() and super() keyword the compiler generated which type of super keyword? 11) How to call super class constructors? 12) Is it possible to use both super and this keyword inside the method? 13) Is it possible to use both super and this keyword inside the constructor? 14) If the child class and parent class contains same variable name that situation how to call parent class variable in child class? 15) One class ab...

Flow control statement Interview Questions for Fresher and Experienced

1) How many flow control statements in java? 2) What is the purpose of conditional statements? 3) What is the purpose of looping statements? 4) What are the allowed arguments of switch? 5) When we will get compilation error like “possible loss of precision”? 6) Inside the switch case vs. default vs. Break is optional or mandatory? 7) Switch is allowed String argument or not? 8) Inside the switch how many cases are possible and how many default declarations are 9) What is difference between if & if-else & switch? 10) What is the default condition of for loop? 11) Inside for initialization & condition & increment/decrement parts optional or mandatory? 12) When we will get compilation error like “incompatible types”? 13) We are able to use break statements how many places and what are the places? 14) What is the difference between break& continue? 15) What do you mean by transfer statements and what are transfer statements present in java? 16) for (; ;...

Java Class declaration interview Questions

1) What is present version of java and initial version of java? 2) How many modifiers in java and how many keywords in java? 3) What is initial name of java and present name of java? 4) Can we have multiple public classes in single source file? 5) Can we create multiple objects for single class? 6) What do you mean by token and literal? 7) What do you mean by identifier? 8) Is it possible to declare multiple public classes in single source file? 9) What is the difference between editor and IDE(integrated development environment) 10) Write the examples of editor and IDE? 11) Define a class? 12) In java program starts form which method and who is calling that method? 13) What are the commands required for compilation and execution? 14) Can we compile multiple source files at a time and is it possible to execute multiple .classes at a time? 15) The compiler understandable file format and JVM understandable file format? 16) What is the difference between JRE and JDK? 17) ...