Java Interview Questions Blog Posts

Basic Java Interview Questions And Answers All Time

Java Interview Questions And Answers: Applying for a job related to programming language requires some basic concepts to be very clear to face the interview and also to crack it. Here our team has collected some commonly asked questions in java inte...
by result n cutoff on Apr 20, 2015

JAVA: Singleton Pattern - Concept and 7 Most Popular Implementation Style

   Singleton in one of the most popular yet controversial design pattern, in the world of object oriented programming. It's one of those patterns, that every developer comes to know first and again it's one of of those patterns, that even e...
by JAVA INTERVIEW QUESTIONS on Feb 10, 2014

JAVA: Data Types Conversion Chart

      In Java Programming Language, we must declare a variable name and type, before using it. The data type of a variable defines the the type of value it will contain. Java supports total 8 types of primitive data types. The name of...
by JAVA INTERVIEW QUESTIONS on Jan 10, 2014

JAVA: Overloading and Overriding

Overloading:    Overloading is a popular technique of object oriented programming. It allows you to define a method with same name but with different parameters list.   Java identifies method by its name and signature. So, if the...
by JAVA INTERVIEW QUESTIONS on Sep 15, 2013

JAVA: Parse String to Double

Paser String to Double:You can parse a double value in string format to double in 4 ways.Double.valueof(String s) :  This method returns a double object containing the value invoked in it in string format.It can trim white-space in start or end...
by JAVA INTERVIEW QUESTIONS on Feb 14, 2013

FRAMEWORK: MVC – Model View Controller

Model-View-Controller (MVC) is a popular Software Architecture pattern widely used in web applications. It separates application data from UI (user interface) by a thin controlling layer, which actually helps as a bridge between UIs and model. In thi...
by JAVA INTERVIEW QUESTIONS on Feb 10, 2013

FRAMEWORK: WHAT IS FRAMEWORK? WHAT’S THE DIFFERENCE BETWEEN FRAMEWORK AND LIBRARY?

Framework: A framework is a basic conceptual and reusable structure which provides generic functionality, used to solve or address complex issues.A software frameworkprovides basic architecture, application programming interfaces (APIs) and tools for...
by JAVA INTERVIEW QUESTIONS on Jan 30, 2013

STRUTS: WHAT IS FRAMEWORK? WHAT’S THE DIFFERENCE BETWEEN FRAMEWORK AND LIBRARY?

Framework: A framework is a basic conceptual and reusable structure which provides generic functionality, used to solve or address complex issues.A software frameworkprovides basic architecture, application programming interfaces (APIs) and tools for...
by JAVA INTERVIEW QUESTIONS on Jan 28, 2013

JAVA: What is the superclass of Exception

java.lang.Throwable is the superclass of all the errors and exceptions in java.
by JAVA INTERVIEW QUESTIONS on Mar 5, 2012

JAVA: Why Errors are Unchecked?

Error is unpredictable. It can occur at any point and recover is also quite impossible. So it is meaningless to declare such exception. That’s why, in java, error is unchecked.
by JAVA INTERVIEW QUESTIONS on Mar 5, 2012

JAVA: Why can’t enum extends any other class?

By default, all enums implicitly extend java.lang.Enum. And as we know, Java doesn't support multiple inheritance, an enum cannot extend any other class.
by JAVA INTERVIEW QUESTIONS on Feb 24, 2012

JAVA: FileInputStream vs FileReader

Class FileInputStream:It is use for reading stream of data from a file in the form of raw bytes(8-bit).Very useful to read image, video files.It can also read character files.Class FileReader: It is use to read stream of character data.It can on...
by JAVA INTERVIEW QUESTIONS on Jan 31, 2012

JAVA: Difference between throw & throws

throw is used to throw an exception in a program, explicitly. Whereas,  throws is included in the method's declaration part, with a list of exceptions that the method can possible throw. It is necessary for all exceptions(except for Error &...
by JAVA INTERVIEW QUESTIONS on Jan 28, 2012

JAVA: Nested Class

 The class which is defined with another class is called nested class.It can be divided into 2 types. They are -   static nested class & non-static nested class Static Nested Class: Nested class which is declared static...
by JAVA INTERVIEW QUESTIONS on Jan 28, 2012

JAVA: Nested Class

 The class which is defined with another class is called nested class.It can be divided into 2 types. They are -   static nested class & non-static nested classStatic Nested Class: Nested class which is declared static is...
by JAVA INTERVIEW QUESTIONS on Jan 28, 2012

JAVA: Difference between throw & throws

throw is used to throw an exception in a program, explicitly.Whereas,  throws is included in the method's declaration part, with a list of exceptions that the method can possible throw. It is necessary for all exceptions(except for Error & R...
by JAVA INTERVIEW QUESTIONS on Jan 28, 2012

JAVA: What is a Container?

Container is a component which can contain other components inside itself. It is also an instance of a subclass of  java.awt.Container, which extends java.awt.Component. An applet is a container. Containers include windows, frames, di...
by JAVA INTERVIEW QUESTIONS on Jan 28, 2012

JAVA: Checked and UnChecked Exception

In Java, there are lots of sub-classes under java.lang.Exception class. we can divide these sub-classes into 2 types on the basis of compile-time checking.The types are - Checked Exception  & Unchecked Exception.Checked Exception: Excep...
by JAVA INTERVIEW QUESTIONS on Jan 28, 2012

What are the differences between the String and StringBuffer classes?

String class :Once an object is created and initialized, it can't be changed because it is Immutable. String object can be created Implicitly and Explicitly. StringBuffer class :  StringBuffer class is mutable(can be modified), length and conte...
by JAVA INTERVIEW QUESTIONS on Jan 27, 2012

JAVA: What are the differences between the String and StringBuffer classes?

String class :Once an object is created and initialized, it can't be changed because it is Immutable. String object can be created Implicitly and Explicitly. StringBuffer class :  StringBuffer class is mutable(can be modified), length and conte...
by JAVA INTERVIEW QUESTIONS on Jan 27, 2012
Close