Top 15 Java abstract class and abstract method interview questions and programs

1.What is abstract class in java? Hiding the implementation  and showing the function definition to the user. Abstract class contains abstract methods and concrete methods(normal methods) 2.How can... read more ?

Can we call super class static method from subclass in java

If you want to call static method of a class we can call directly from another static method or by using its class name we can call static... read more ?

Inheritance interview programming questions : Part 2

1. what is the output of following program: package com.instanceofjava;   public class SuperDemo{ public void show(){     System.out.println("Super class show() method called");   }   }... read more ?

Constructor chaining in java using this and super Keywords

Constructor chaining example program in same class using this keyword. package instanceofjava; class ConstructorChaining{ int a,b  ConstructorChaining(){ this(1,2);  System.out.println("Default constructor");   }    ConstructorChaining(int x , int y){... read more ?

Java Coding Interview programming Questions : Java Test on HashMap

1.What will be the Output of this program. public class HashMapJavaTricky{   public static void main(String[] args) {       HashMap<Integer,String> hm= new HashMap<Integer, String>();        hm.put(1, "one");... read more ?

Find Second smallest number in java without sorting

Java interview Program to find second smallest number in an integer array without sorting the elements. package com.instanceofjava; class SecondSmallestNumber{   int[] x ={10,11,12,13,14,6,3,-1};           int... read more ?

Select Menu