2:20 am - Wednesday April 26, 2017

Archive: Z-A Interview Questions Subscribe to Z-A Interview Questions

Basic Interview Question3

31.What is the difference between static and non-static variables?   A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object...

Basic Interview Question2

21.What is mean Abstract Class ? Abstract classes can be used to implement the inheritance relationship between the classes that belongs same hierarchy. Classes and methods can be declared as abstract. If a Class is declared as abstract , no...

Basic Interview Question4

40.What if the static modifier is removed from the signature of the main method? Program compiles. But at runtime throws an error “NoSuchMethodError”.   41.What if I write static public void instead of public static void? Program...

Basic Interview Question5

49. What is the difference between declaring a variable and defining a variable? In declaration we just mention the type of the variable and it’s name. We do not initialize it. But defining means declaration + initialization.e.g String...

Wrapper Class Interview Question

Wrapper Class Interview Question          1.What are wrapper classes? Integer, Character, Double,Byte,Short,Boolean,Long,Float 2. What is mutable object and immutable object? If a object value is changeable then we can call...

Thread Interview Question

Thread Interview Question 1.What is the difference between the methods sleep() and wait()   The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting...

Inner Class Interview Question

Inner Class Interview Question 1. What is inner class? If the methods of the inner class can only be accessed via the instance of the inner class, then it is called inner class. 2. What is nested class? If all the methods of a inner class...

IoPackage Interview Question

IoPackage Interview Question   1.Explain the usage of Java packages. This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same...

Exception Interview Question

Exception Interview Question

Basic Interview Question

1.Whats the difference between constructors and normal methods? Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times and it can return a value...

Struts Interview Question

Struts Interview Question   1.            What is Front Controller. The Front Controller Pattern is a software design pattern listed in several pattern catalogs. The pattern relates to the design of web applications. It “provides...

Hibernate Interview Question

Hibernate Interview Question   1.            What is the general flow of Hibernate communication with RDBMS? The general flow of Hibernate communication with RDBMS is :              Load the Hibernate configuration file...

Core Java Interview Question

Basic Question Exception Interview Question Inner Class Interview Question IoPackage Interview Question Thread Interview Question Wrapper Class Interview Question