educationalera

  • Increase font size
  • Default font size
  • Decrease font size

Java Language

AddThis Social Bookmark Button

21.) What is invoked via HTTP on the Web server computer when it responds to requests from a user's Web browser?

A.) A Java application

B.) A Java applet

C.) A Java servlet

D.) None of the above is correct.

View Answer

Answer: Option C


22.) What servlet processor was developed by Apache Foundation and Sun?

A.) Apache Tomcat

B.) Apache Web server

C.) Sun servlet processor

D.) None of the above is correct.

View Answer

Answer: Option A


23.) How many copies of a JSP page can be in memory at a time?

A.) One

B.) Two

C.) Three

D.) Unlimited

View Answer

Answer: Option A

 
24.) What will be the output of the program?

public class X

{

        pubic static void main(String [] args)

       {

           try

           {

                badMethod();

   System.out.print("A");

    }

    catch (Exception ex)

   {

         System.out.print("B");

  }

   finally

  {

       System.out.print("C");

 }

     System.out.print("D");

}

   public static void badMethod()

  {

    throw new Error(); /* Line 22 */

}

}

A.) ABCD

B.) Compilation fails.

C.) C is printed before exiting with an error message.

D.) BC is printed before exiting with an error message.

View Answer

Answer: Option C


25.) What will be the output of the program?

class Test

{

       static int s;

       public static void main(String [] args)

       {

            Test p = new Test();

            p.start() ;

            System.out.println(s);

       }

       void start()

      {

            int x = 7;

            twice(x);

           System.out.print(x + " ");

      }

    void twice(int x)

    {

         x = x*2;

        s = x;

   }

}

A.)     7 7

B.)     7 14

C.)     14 0

D.)     14 14

View Answer

Answer: Option B


 

 
JPAGE_CURRENT_OF_TOTAL


Oracle Certification

oracle_logo

The Oracle Certification Program is a professional certification program offered by the Oracle Corporation. There are three levels of Oracle Certification in several disciplines: Oracle Certified Associate (OCA), Oracle Certified Professional (OCP), and Oracle Certified Master (OCM).

Java Certification

java_logo

Sun Certified Professional (SCP) is a professional certification program by Sun Microsystems, a subsidiary of Oracle Corporation. There are two levels of java Certification in several disciplines: Sun Certified Java Associate (SCJA), Sun Certified Java Programmer (SCJP), and Sun Certified Java Developer (SCJD)

Red Hat Certification

red_hat_logo

The Red Hat Certification Program is Red Hat's professional certification program for Red Hat and general Linux related skills such as system administration on Red Hat Enterprise Linux Red Hat Certified Technician (RHCT)  and Red Hat Certified Engineer (RHCE)