Java Quizzes, Questions & Answers
Recent Quizzes
Arrays are the collection of data which are stored under a name. Array is set to consist of collection of elements which are identified at least by one array index or key. Array is an important keyword to be noted in computer...
Questions: 10 | Attempts: 180 | Last updated: Mar 20, 2023
-
Sample QuestionWhat collection's is an array made up of?
Advanced Java, as the name implies, is not easy! It is very advanced and complicated. Much more than basic Java. But it makes computing much easier!!! Can be used on any device and anywhere.
Questions: 10 | Attempts: 1865 | Last updated: Mar 22, 2023
-
Sample QuestionWhen the ejbRemove method encounters a system problem ,it should throw_________
This trivia quiz is made up of expression evaluation questions on Java. It is perfect for any computer geek who wants to test out how good they are when it comes to the solving problems associated with the computer language. How...
Questions: 11 | Attempts: 526 | Last updated: Mar 21, 2023
-
Sample QuestionWrite the value of z after the execution of the following code : int j; int z, j=16; z = (4*j++)/3; Hint: 1)evaluate from Left to Right 2) Prefix(++j) change and use, postfix use and change(j++) 3)Binary operations based on BODMAS rule 4) division, multiplication, and modulus whichever comes first should be performed first. 5) numerator and denominator are integers perform only integer division 151/3 = 50 6) assign the value to z.
Questions: 10 | Attempts: 422 | Last updated: Mar 21, 2023
-
Sample QuestionWhich of these literals can be contained in a data type float variable ?
An interesting Java programming quiz is here for you if you use Java programming or are learning this language. The quiz is not going to be easy in any way. The questions designed in the quiz are useful for testing your knowledge...
Questions: 15 | Attempts: 4767 | Last updated: Jul 3, 2023
-
Sample QuestionAll data members in an interface are by default
Quiz created by Rahul
Questions: 100 | Attempts: 5431 | Last updated: Sep 18, 2023
-
Sample QuestionWhat will be the result of compiling the following program? public class MyClass { long var; public void MyClass(long param) { var = param; } // (Line no 1) public static void main(String[] args) { MyClass a, b; a = new MyClass(); // (Line no 2) } } 1.A compilation error will occur at (Line no 1), since constructors cannot specify a return value 2.A compilation error will occur at (2), since the class does not have a default constructor 3.A compilation error will occur at (Line no 2), since the class does not have a constructor that takes one argument of type int. 4.The program will compile without errors.
.
Questions: 10 | Attempts: 1007 | Last updated: Mar 22, 2023
-
Sample QuestionWhat of the following is the default value of an instance variable?
Questions: 49 | Attempts: 139 | Last updated: Mar 20, 2023
-
Sample QuestionWhat was the initial name of Java?
Questions: 10 | Attempts: 114 | Last updated: Feb 13, 2024
-
Sample QuestionIn Java, each thread has its own ________, in which it runs?
Questions: 20 | Attempts: 155 | Last updated: Mar 20, 2023
-
Sample QuestionWhich two statements are true about the hashCode method?
Advertisement