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×

Advanced Java Online Test – High Level Coding

Useful for hiring

  • Java Experts
  • Senior Java Programmers
  • Sr. Java Software Developers

Start hiring job-fit candidates using this assessment


"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

The Men (M), Elves (E) and the Dwarves (D) are fighting for the Iron Throne. The three houses are fighting to capture the throne.

The Zth battle goes on for Z days before a winner emerges. Interestingly, the battles follow a pattern.
If the battle number Z is divisible by 3 it is fought between M and E,
If the remainder of the division with 3 is 1 it is fought between E and D and
If the remainder of a division with 3 is 2 it is fought between D and M.
Given a day number Y, you will have to say which two houses are fighting on the Yth day.

The first line will contain an integer Y.

You will have to report which of the two houses are fighting on the Yth day 
(i.e. you will have to print one of the three battles (ME, ED, DM))

Sample Input

Sample Output


Test details:

The advanced Java programming online test enables employers to identify & hire experienced Java developers/ programmers in less time & efforts.

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

No. of Questions: 22

Test Duration: 60 minutes

The Java online test contains the combination of application and theory & coding questions that helps you to evaluate practical & technical skills of the experienced candidates

Test description:

Advanced Java Online Test has been created & validated by qualified & experienced Subject Matter Experts (SME)s to assess Advanced Java programming skills of candidates - as per Industry Standards.

Testing the skills of experienced candidates is tough, but it’s the most important thing to carry out for ensuring the better project development & results that eventually helps the organization to become successful. To overcome this hurdle, employers can ask the candidate to appear for a quick online test as per his/her availability.

The Java  online test helps recruiters and hiring managers to gauge application skills of experienced Java developers before hiring/recruiting them onboard.

Online advanced java test contains Java programming questions (high difficulty level) that evaluate knowledge of candidates for J2EE, Hibernate, Core Java concepts, OOPs concepts, Data Types & Operators & much more.

Our intelligent reports on Online test for advanced java will provide you the detailed analysis of skills related strengths & weaknesses of the candidates that will help you in making right hiring decisions.

To know about the candidate experience, we have introduced the new feature called candidate feedback module. It will ensure you that the candidates are getting an excellent experience while attempting the test.

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 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...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates