Signup/Sign In

Datatypes, Operators and Class/Object Basics Test

This Test will cover beginner level Datatype, Operators and other simple questions to warm you up.
Q. Which of the following is not a primitive data types?
Q. What is the range of the char type?
Q. What is the output of this program?
class bitwise_operator {
        public static void main(String args[])
        {
            int var1 = 42;
            int var2 = ~var1;
            System.out.print(var1 + " " + var2);     	
        } 
    }
Q. Object is an _________ of a class

Q. Class is a ______ entity.
Q. Object is a _______ entity.
Q. ______ can appear anywhere in the body of a java method.
Q. ______ must be the first non comment statement in the file.
Q. _______ is passed to a method by use of call-by-reference.

Q. Every method of a ________ is implicitly final.
Q. A _______ object cannot be modified after it is created.
Q. A ____ class may not have any abstract method.
Q. What will be the result of the expression 13 & 25?
Q. What will be result of expression 9 | 9?
Q. _________ Operators are overloaded for string objects?

Related Tests: