Which of the following statements make a message-driven bean different from a session bean?
Each correct answer represents a complete solution. Choose all that apply.
You work as a Software Developer for UcNet Inc. You write the following code using Java.
class StringTest
{
public static void main(String args[])
{
String s = "Hi";
s.concat("There");
System.out.println(s);
}
}
What will happen when you try to compile and execute the code?
Peter works as a Software Developer for Neon Inc. He is developing an application in Java. He declares an interface. Which of the following field declarations are valid within the body of an interface?
Each correct answer represents a complete solution. Choose three.
Wilbert works as a Software Developer for Wintos Inc. He writes the following code.
1. public class tcf
2. {
3. public static void main(String[] args)
4. {
5. try
6. {
7. int x = 5 / 0;
8. System.exit(0);
9. }
10. catch(ArithmeticException e)
11. {
12. System.out.println("Within catch");
13. }
14. finally
15. {
16. System.out.println("Within finally");
17. }
18. }
19. }
What will happen when he tries to compile and execute the code?
You work as a Software Developer for NewTech Inc. You write a bean class called EmployeeBean. The class contains two methods, EmpSal() and EmpAttendance(). Both these methods can be accessed by the ADMIN role. The EmpSal() method can be accessed only by the HR role, while the EmpAttendance () method can be accessed only by the DBA role. You want the EmpAttendance() method to be accessed by the HR role also. However, no other roles in the class except ADMIN, DBA, and HR should be able to access the EmpAttendance() method. Which of the following steps will you take to accomplish the task?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following statements about various authentication mechanisms in J2EE are true?
Which of the following pieces of codes will be placed at the line XXX to successfully compile the given class?
public interface Publication
{
String GetDetails();
}
public class Book implements Publication
{
//line XXX
}
Which of the following are correct if LoginContext enforces the requisite flag to each LoginModule in the configuration file?
Each correct answer represents a complete solution. Choose all that apply.
You work as a Web Deployer for UcTech Inc. You write the
Who will have access to the application?
Given the following directory structure.

Assuming that the current directory is com, which of the below options can be used to create a jar file called TestJar.jar that contains all the files from the directory testApp?