Narayana Tutorial

Online Java Tutorial Blog

Tag: Java Interview Questions

Difference between Class.forName() and newInstance() in java

Difference between Class.forName() and newInstance() in java   Class.forName() returns the Class-Type for the given name. Means that it will return reference to a class and load the available all static blocks not instance methods. if you are interested only in the static block of the class , the loading the class only would do , […]

Most Important HashMap Interview Questions and Answers

In this post I am sharing most important HashMap interview questions along with answers. Java collections package is java.util, this is the most important package and used frequently in most of the projects. What are the methods required for an object to be used as a key or value in HashMap equals() hashcode() The key […]

What is difference between abstract class and interface?

What is difference between abstract class and interface?   Abstract class may or may not be contain abstract methods but a class should be called as abstract when it contains at least one abstract method. It can also contain n numbers of concrete method. Interface can contain only abstract ( non implemented) methods. The abstract […]

Narayana Tutorial © 2016 Frontier Theme
Show Button
Hide Button