Java FAQ

We offer you quality collection of Java FAQ from core java, jsp and servlet. These java FAQ will help you to prepare for career java interview, java certification, college tests and campus interview. It will also help to update your java knowledge.

Recently Added Java FAQ:

What are the causes of exceptions in java?

A java exception can be thrown only in the following three scenarios:

(1) An abnormal execution condition was synchronously detected by the Java virtual machine.
- When evaluation of an expression violates the normal semantics (Example: an integer divide by zero) (more…)

FAQ Category: Java Exception.

Explain type of exceptions or checked vs unchecked exceptions in java.

Type of exceptions in java are checked exceptions and unchecked exceptions. This classification is based on compile-time checking of exceptions. There is also a classification based on runtime in java. It is not widely known! That is synchronous and asynchronous exceptions. First let us see the java checked (more…)

FAQ Category: Java Exception.

Explain the java this keyword.

This definition:

Java’s ‘this’ keyword is used to refer the current instance of the method on which it is used.

Following are the ways to use this

1) To specifically denote that the instance variable is used instead of static or local varible.That is, (more…)

FAQ Category: Core Java.

Is javadoc comment a type of standard java comment?

How many types of java comments are there? Everybody knows there are two types of java comments available. Now the misunderstood part starts. What are those two types of java comments?

The (ยง3.7) Java Language Specification Third Edition says, (more…)

FAQ Category: Core Java.

Check list for Internationalization (I18n)

Check list for Internationalization (I18n)

This check list will cater to the need of programmers irrespective of the language java /dot net/ j2ee / any other.

Translatable items

What is scoped memory and why java uses it?

In java, a frequent occurence of a common phenomenon related to memory management is creation and destruction of temporary objects. What are java temporary objects? For example in java, when two strings are concatenated, a StringBuffer object is created. As two Java String objects cannot be added directly (more…)

FAQ Category: Core Java.

What is a static import in java?

First lets understand what does “java import” does to your java program!
Consider the java import statements: (more…)

FAQ Category: Core Java.

Explain the scope of JSP objects.

Scope of JSP objects:
The availability of a JSP object for use from a particular place of the application is defined as the scope of that JSP object. Every object created in a JSP page will have a scope. Object scope in JSP is segregated into (more…)

FAQ Category: JSP.

Difference between Vector and ArrayList in java?

java.util.Vector came along with the first version of java development kit (JDK). java.util.ArrayList was introduced in java version1.2, as part of java collections framework. As per java API, in Java 2 platform v1.2, (more…)

FAQ Category: Java Collection.

How many types of java variables are there?

Java variables can be categorized into the following seven types:

  1. Class Variable
  2. Instance Variable
  3. Array Component Variable (more…)

    FAQ Category: Core Java.

Page 1 of 512345»


FAQ Highlights