Java Online Quiz-Test your knowledge Java Basics

Test your knowledge in Java by Answering Questions.

Please enter your email:

1. Select the option which is not a Java Datatype.

 
 
 
 

2. What is the default value of the integer stored in Array.

 
 
 
 

3. Select the option which is not a JAVA keyword.

 
 
 
 

4. Identify the appropriate datatype for 3.5

 
 
 
 

5. Select the correct option about the variables names.

 
 
 
 

6. IS JAVA Case Sensitive??

 
 

7. What is the command useful to compile the java program?

 
 
 
 

8. Java supports following platforms

 
 
 
 

9. Select the option which is not a logical operator in Java

 
 
 

10. What is the output of a%b

int a =20;
int b =10;

 
 
 
 

11. What is the output of the java program ?

public class ArraysEx
{
public static void main(String[] args)
{
int arr[]={2,4,5,6,9};
System.out.println(arr[2]+arr[4]);

}

}

 
 
 
 

12. What is the size of the Arrays int a[]={1,2,3,4,5,6};

 
 

13. How to calculate the length of the Array?
int arr[]={1,2,3,4,5,6};

 
 
 
 

14. What is the definition of Array??

 
 
 
 

15. How to declare a two dimensional array in java?

 
 
 
 


7 comments on “Java Online Quiz-Test your knowledge Java Basics

  1. Lakshmi

    Thanks for giving this opportunity.Its giving me confidence. Scoring comes like “you scored 9 points out of 9 points total”, even if 10 questions correct also

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *