Java Programming Quizzes & Trivia

It’s time to input some data and bring magic to the computer screen. We need you to come up with the perfect answering code for our Java programming quiz. Are you up for the challenge? Think you know your code lines and this very popular programming language? Let’s heat up the place with a few sample questions.

What company developed Java? What name is closely tied to its design? What were the five primary goals in the creation of the Java language? Where does the syntax of Java largely derive from? What’s a swing application? Don’t give up just yet. Think it through and get ready for more well coded questions. Our programmers are hard at work trying to test your skills. Prove to them you’ve got what it takes.


The quiz is about the basic terminologies in Java programming. It also includes array declaration and the application of operators.

Questions: 20  |  Attempts: 1475   |  Last updated: May 18, 2017
  • Sample Question
    Using the declaration below, what will be the final element of the array? int [ ] grades = new int[35];

This Quiz is prepared to test the java knowlege.

Questions: 4  |  Attempts: 678   |  Last updated: Aug 17, 2017
  • Sample Question
    Who had invented java programing language

The quiz is about identification of the correct or incorrect declaration of identifiers and Java statements. (Valid or Invalid / Correct or Incorrect)

Questions: 30  |  Attempts: 332   |  Last updated: Aug 17, 2017
  • Sample Question
    Select V if the identifier below is VALID, otherwise select I.      ==counter

This is a simple Java Programming Test

Questions: 3  |  Attempts: 286   |  Last updated: Jan 7, 2013
  • Sample Question
    If you attempt to add an int and a byte, the result will be a ______ value.


Questions: 50  |  Attempts: 100   |  Last updated: Feb 11, 2013
  • Sample Question
    What is the range of an int data type in Java?




You May Also Like: Java Programming Flashcards

Java Programming Questions & Answers


What must the initialization be so that the following fragment prints out the integers -3 -2 -1? for ( _______; j < 0; j++    ) System.out.print( j + " " ); System.out.println( );
C is the answer to this question. There are some people who may become confused with integers and whole numbers because they somehow look the same. The only difference is the items are positive, negative, or they can also be zero. There are differen
Which symbol is used to denote a multi-line comment?
It's option B. / / which is used to denote a multi-line comment.
What is the main features in C which is not in C++?
Did you mean Java? the question ask for C features that aren't present in C++
More