Java Interview Questions- 4

What is the difference between an Interface and an Abstract class? An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. What will happen…

Details

Java Interview Questions- 3

What is final class? Final classes are created so the methods implemented by that class cannot be overridden. It can’t be inherited. What is NullPointerException? A NullPointerException is thrown when calling the instance method of a null object, accessing or modifying the field of a null object etc. What are the ways in which a…

Details

Java Interview Questions- 2

According to Java Operator precedence, which operator is considered to be with highest precedence? Postfix operators i.e () [] . is at the highest precedence. Variables used in a switch statement can be used with which datatypes? Variables used in a switch statement can only be a string, enum, byte, short, int, or char. When…

Details

Java Interview Questions(?)

Dear readers, these Java Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Java Programming Language. As per my experience, good interviewers hardly planned to ask any particular question during your interview, normally questions start with some basic concept…

Details

Java Uses Questions and Answers

JAVA Questions and Answers has been designed with a special intention of helping students and professionals preparing for various Certification Exam sand Job Inter views. This section provides a useful collection of sample Interview Questions and Multiple Choice Questions (MCQs) and their answers with appropriate explanations. SN Question/Answers Type 1 JAVA Interview QuestionsThis section provides…

Details

The javadoc Tags

The javadoc tool recognizes the following tags:- Tag Description Syntax @author Adds the author of a class. @author name-text {@code} Displays text in code font without interpreting the text as HTML markup or nested javadoc tags. {@code text} {@docRoot} Represents the relative path to the generated document’s root directory from any generated page {@docRoot} @deprecated…

Details

What is Javadoc?

Javadoc is a tool which comes with JDK and it is used for generating Java code documentation in HTML format from Java source code which has required documentation in a predefined format. Following is a simple example where red part of the code represents Java comments: /** * The HelloIndia program implements an application that…

Details