Java Online Test Questions



Select Series



Which is a reserved word in the Java programming language?





Which is a valid keyword in java?





Which one is a valid declaration of a boolean?





What is the output of relational operators?





Which of the following can be operands of arithmetic operators?





Which one of the following will declare an array and initialize it with five numbers?





Which of these method of class String is used to obtain length of String object?





Which of these method of class String is used to extract a single character from a String object?





Which of these class is superclass of String and StringBuffer class?





Which one of these lists contains only Java programming language keywords?





 Modulus operator, %, can be applied to which of these?





 On applying Left shift operator, <<, on an integer bits are lost one they are shifted past which position bit?





Which of these method of class String is used to check weather a given object starts with a particular string literal?





 Which of these constructors is used to create an empty String object?





Decrement operator, –, decreases value of variable by what number?





Which of these method of class String is used to compare two String objects for their equality?





What is the numerical range of a char?





Which is a valid declarations of a String?





Which will legally declare, construct, and initialize an array?





Which is the valid declarations within an interface definition?