Posts

Showing posts with the label class

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) ...