3:53 pm - Thursday March 25, 8726

Tag Archives: Basic Interview Question5

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