1. Understanding Multi-Catch Block in Java
November 07, 2013
Multiple catch blocks are used in java for handling different types of exceptions. Single catch blocks are defined within Exception class type as it is super class for all type of exceptions. We can handle more than one type of exception in a catch block.
In java to stop abnormal termination...
|
|
|
2. Command Line argument
October 30, 2013
The article is all about Java command line arguments, their usage and how they differ from C and C++. Let's read more. A JAVA application can accept the arguments from command line at the time of running a program. We can pass N number of arguments. When we invoke an applica...
|
|
|
3. Make your Data Search Easy
September 26, 2013
If we want to search particular data in a large file we need to read each of the word and have to find our required data. Let’s read how.
In order to make this searching easy we will use java.util.regex.Pattern, java.util.regex.Matcher, and java.util.Scanner classes to help us find stuff. ...
|
|
|
4. Naming Conventions
September 11, 2013
A set of specified global rules that are followed while writing code are called as Naming Conventions. This topic is important topic in Oracle Java Certification (Programmer level).
In order to maintain any application code globally we can use...
|
|
|
5. Import statements
August 30, 2013
Import keyword is used to import built-in and user-defined packages into your java source file. So that your class can refer to a class that is in another package by directly using its name. Import statement kept after package statement.
You can see reasonable no of questions on Import State...
|
|
|
6. String,StringBuffer and StringBuilder
August 29, 2013
This topic is an important topic in the Java Programmer certification from the range of Sun Java Certifications. Let’s read the difference Between String ,StringBuffer and StringBuilder.
String objects are immutable and cannot modified. To ove...
|
|
|
7. Method overriding
August 29, 2013
When a method in a subclass has the same name and type signature as a method in its superclass, then the method in the subclass is said to override the method in the superclass. Let’s get into the details of method overriding.
When an overridden method is called from within a subclass, it wi...
|
|
|
8. Abstract methods and Abstract class
August 28, 2013
An abstract method does not contain any body. It contains only prototype. Simply to say abstract method is an incomplete method. An abstract class may contain zero or more than one abstract methods. Let’s read more about abstract methods and abstract class.
Both abstract class and abstract m...
|
|
|
9. When to override equals() method?
August 08, 2013
Equals() method is used to check the quality of two objects, using == operator. The article will help you in understanding when to override the equals() method.
This article is to give the basic need to know about equals() method. In Object class equals() method is defined. This method is us...
|
|
|
10. Assertion and Collection in simplified form:
July 23, 2013
Assertions are statements in Java that enable you to test the assumptions made in a program during program execution. An assertion statement contains a Boolean expression that the programmer believes to be true at the time the statement is executed.
Assertions are used during testing of a pr...
|
|
|