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 ?

Find second highest number in an integer Array

Java Interview Program to find second highest number in an integer array without sorting the elements. package com.instanceofjava; class SecondLargestNumber{   public static void main(String args[]) {   ... read more ?

How to find Biggest Substring in between specified character or String

1. Java Program to find biggest substring in between specified character or string String: i am rajesh kumar ravi in between: 'a'   package com.instaceofjava;   public class... read more ?

Java Basic Interview Programming Questions on Constructors

Below programs are the basic programs frequently asking in java quizzes  try to test your java programming skills by answering the questions. if you are having any doubts... read more ?

Select Menu