OOP in Java Objective
OOP in Java Objective
Group A
Attempt all the questions. [101 = 10]
1. Circle (O) the correct answer.
i) Which one of the following is not a valid java bitwise operator?
a) >> b) <<
c) >>> d) <<<
a) throws b) throw
c) try d) catch
iv) Which one of the following access specifier is appropriate for members of superclass to
access only from subclass?
a) private b) protected
c) public d) default
vii) Which one of the following method is called only once during the run time of your applet?
a) stop() b) paint()
c) init() d) start()
viii) Which of these method of class String is used to compare two String objects for their
equality?
a) equals() b) Equals()
c) is Equal() d) Is Equal()
ix) What is the default value of priority variable MIN_PRIORITY and MAX_PRIORITY?
a) 0 & 63 b) 1 & 10
c) 0 & 1 d) 1 & 32