Core 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)
- An error occurs in loading or linking part of the program
- When limitation on a resource [...]
FAQ Category: Java Exception.
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 exceptions and unchecked exceptions.
Checked Exceptions Vs Unchecked [...]
FAQ Category: Java Exception.
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,
private String javaFAQ;
void methodName(String javaFAQ) {
this.javaFAQ = javaFAQ;
}
Here this refers to the instance variable. Here [...]
FAQ Category: Core Java.
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,
Traditional Comment
End of line Comment
What happened to the documentation comment or javadoc comment?
No it is not a type [...]
FAQ Category: Core Java.
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
GUI - Labels and Menu items
User messages including third party component generated
Log / system generated messages
Help - Online help / manual and other deliverable documentation
Installation [...]
FAQ Category: Core Java.
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 (immutable property), a helper object StringBuffer is [...]
FAQ Category: Core Java.
Core Java