Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Java MCQ Online Test to Assess Java Architect

Topics Covered

  • Java Messaging Services (JMS)
  • Hibernate
  • J2EE
  • Java Design Patterns
  • Core Interfaces
  • Session Interfaces
  • Java Servlet
  • JavaServer Pages (JSP)
  • Remote methods
  • Invocation

Useful for hiring

  • Java Architect
  • J2EE Architect
  • IT Solution Architect
  • Software Architect

Start hiring job-fit candidates using this assessment

GET A DEMO

"Interview Mocha has provided UNEECOPS with a veritable assessment platform with a comprehensive test library, online test platform, and intelligent reports. This made it easier for us to map different job openings with job-fit candidates and recruit faster."

Nisha Chandila, UNEECOPS,
Talent Acquisition Manager
Question

Which statement is true about session.merge()?

Answer
    • if there is no persistent instance currently associated with the session, try to load it from the database.

    • if there is no persistent instance currently associated with the session, throw Exception.

    • None of the mentioned

Question

Which of the following is CORRECT?

Answer
    • JSP scriptlets and declarations result in code that is inserted inside the _jspService method.

    • The JSP statement <%! int x; %> is equivalent to the statement int x;.

    • The following are some of the predefined variables that maybe used in JSP expression:
      httpSession, context.

    • To use the character %> inside a scriptlet, you may use %\> instead.

Question

What will be the output of the following code?

import java.io.IOException;
class AirPlane 
{
    public AirPlane()  
    {
        System.out.print("AirPlane");
    }
}
class AirJet extends AirPlane 
{
    public AirJet() throws IOException 
    {
        try 
        {
            throw new IOException();
        } 
        catch (IOException e) 
        {
            System.out.print("IOException is thrown in AirJet");
        }
    }
}
public class Tester 
{
    public static void main(String args[]) 
    {
        try 
        {
            new AirJet();
        } 
        catch (IOException e) 
        {
            System.out.print("IOException is thrown in Tester");
        }
    }
}

Answer
    • AirPlaneIOException is thrown in AirJetIOException is thrown in Tester will be printed

    • AirPlaneIOException is thrown in AirJet will be printed

    • AirPlaneIOException is thrown in Tester will be printed

    • Compilation error

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO