Thursday, February 4, 2016

How to create a BIRT report?

Open the Eclipse.
Choose file--new-- Project
Then select Business Intelligence Reporting tools
select report project and click next
Give a name for the report and click finish

Click OK if asked to switch to the report design perspective.

What is String concatenation in java?

You can use + operator to concatenate two Strings.
Eg. String firstName=”Jenny ”;
String lastName= “Peter”;

When we want to get the full name of the person, we can concatenate two Strings firstName and lastName and get the fullName.
fullName=fisrtName+lastName;
or
fullName=”Jenny “+lastName;

When you concatenate a string with another value, that value is converted to String.

Eg. int age=25;
String output =age+” years”;

Now output is “42 years”