harika


{ City } bangalore
< Country > india
* Profession * associate software engineer
User No # 106221
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 4
Users Marked my Answers as Wrong # 1
Questions / { harika }
Questions Answers Category Views Company eMail




Answers / { harika }

Question { TCS, 5386 }

Basic types of Enterprise JavaBeans?


Answer

EJB's holds the business logic solely.

There are 2 types of EJB

1--> Session ==>Performs task for the client

2--> Message Driven ==> acts as a listener for a message type ,for example Java Message Service API

Is This Answer Correct ?    0 Yes 0 No

Question { DSR Management, 17575 }

12344321
123 321
12 21
1 1 how i print this program??


Answer

package basic_java_examples;

public class Numbers {

public static void main(String[] args){

int i,j,n=4;
for(i=0;i<=n;i++){
System.out.println();
for(j=1;j<=n-i;j++)
System.out.print(j);
for(j=0;j<2*i;j++)
System.out.print(" ");
for(j=n-i;j>=1;j--)
System.out.print(j);
}
}

}

Is This Answer Correct ?    4 Yes 1 No