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
Posted by: Instanceofjava Posted date: February 16, 2016 / comment : 0 Core java Interview Questions , java interview programs
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
Posted by: Instanceofjava Posted date: February 15, 2016 / comment : 0 Core java Interview Questions , java interview programs
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
Posted by: Instanceofjava Posted date: February 15, 2016 / comment : 1 Core java Interview Questions
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
Posted by: Instanceofjava Posted date: February 15, 2016 / comment : 0 java Collections interview Questions
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
Posted by: Instanceofjava Posted date: February 15, 2016 / comment : 1 arrays , java interview programs
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 ?