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×

Junior Java Developer Knowledge Test

Topics Covered

  • Core Java
  • OOPs Concepts
  • JSP (JavaServer Pages)
  • Servlets

Useful for hiring

  • Junior Java Developer
  • Java Application Developers ( 1-2 yrs of experience)
  • Java Junior Software Programmers ( 1-2 yrs of experience)

Start hiring job-fit candidates using this assessment

GET A DEMO

"The best part of Interview Mocha is they have topic wise questions available. The skill wise extensive reports and advanced analytics lets us measure & benchmark the proficiency level of employees in that particular skill."

Cheryl Tolkinen, Securian, USA,
Learning & Development Manager
Question

Which of the following correctly represents the following JSP statement?
<%=x%>

Answer
    • <jsp:expression=x></jsp:expression=x>

    • <jsp:expression>x</jsp:expression>

    • <jsp:statement>x</jsp:statement>

    • <jsp:declaration>x</jsp:declaration>

    • <jsp:scriptlet>x</jsp:scriptlet>

Question

To resolve the compilation error(s) in the following code, what can be done independently?

interface Movable {
    public abstract void m1(); // line 1
    void m2();  // line 2
    public void m3();  // line 3
    abstract void m4();  // line 4
}
class Chair implements Movable {  // line 5
    public void m1() {    }  // line 6
    void m2() {    }  // line 7
}

Answer
    • mark class Chair "abstract"

    • mark Chair "abstract" and mark m2() "public"

    • implement m3() and m4() in Chair (with public access modifier)

    • None of the mentioned

Question

Which of the following statements are correct about static functions?

Answer
    • Static functions are invoked using objects of a class.

    • Static functions can access static data as well as instance data.

    • Static functions are outside the class scope.

    • Static functions are invoked using class.

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