Question: Which of the following transaction modes are supported by Enterprise Java Beans?
A
B
C
D
E
TX_NOT_SUPPORTED
B
TX_BEAN_MANAGED
C
TX_REQUIRED
D
X_MANDATORY
E
All
Note: Not available
public class Test120 extends _Test120 { { System.out.print("_INIT"); } static { System.out.print("_STATIC"); } Test120() { System.out.print("_CONST"); } public static void main(String[] args) { System.out.print("_MAIN"); new Test120(); } } class _Test120 { { System.out.print("_BIN"); } static { System.out.print("_START"); } _Test120() { System.out.print("_BASE"); } }
javax.ejb.Handle bookHandle = ________; ObjectOutputStream stream = new ObjectOutputStream(newFileOutputStream(fileName)); stream.writeObject(bookHandle); stream.close();Which of the following methods should be filled in the blank?
import java.util.*; public class Test { public static void main(String str[]) { List l = new ArrayList(); l.add(''1''); l.add(''2''); l.add(1,''3''); System.out.println(l); } }
public class Test129 { public static void main(String[] args) { A a = new A2(); B b = new B2(); System.out.println(a.a + "" + b.b); } } class A { int a = 1; } class A2 extends A { int a = 2; } class B { public int b = 1; } class B2 extends B { public int b = 2; }
public static void main(String[] args) { int []arr={12,23,43,34,3,6,7,1,9,6}; { int temp; for (int i=0;i<arr.length;i++) { for (int j=0;j<arr.length-i;j++ ) { if (arr[j]>arr[j+1]) { temp=arr[j]; arr[j+1]=arr[j]; arr[j+1]=temp; } } } } for(int i=0; i<arr.length; i++) { System.out.print(arr[i] + " "); } }