Object Oriented Programming MCQs deal with Java Object Oriented Programming Concepts Is/Are, …….. Inheritance Is Not Supported By Java, …….. Keyword Is Used To Create An Object In Java, Runtime Polymorphism Feature In Java Is, Compile Time Polymorphism Is Called, Division Operator Has …… Precedence Over Multiplication Operator, Hiding The Complexity In Program Is Known As, ……. Are Used To Document A Program And Improve Its Readability, Which Is The Alternative To Switch In Java Language, In Java Language, An Array Index Starts With, Which Are The Special Symbols Used To Declare An Array In Java, Java Is ………Language, Which Method Can Set Or Change The Text In A Label, What Is The Name Of The Swing Class That Is Used For Frames, Java Text Field Can Allow The Editing Of ……. Text, Constructor Have Which Type Of Return Data Type, Which Sorting Technique Is Also Called Exchange Sort:
Object Oriented Programming MCQs
In java which method print string and move control to next line.
A. System.out.print(“any type of string”);
B. System.out.println(“any type of string”);
C. Scanner.nextline();
D. Printf(“any string”);
View Answer
Next() method can return the value.
A. Return next multiple string value
B. Return next long value
C. Return next integer value
D. Return next one word string value
View Answer
Sorting is the process of arranging elements in ________________ .
A. Ascending order
B. Descending order
C. Both a & b
D. None of the above
View Answer
Which sorting technique is also called exchange sort.
A. Insertion sort
B. Selection sort
C. Bubble sort
D. Merge sort
View Answer
Constructor have which type of return data type.
A. Int
B. Float
C. Double
D. No return type
View Answer
A constructor that have __________ parameter is known as default constructor.
A. No parameter
B. One parameter
C. Two parameter
D. Three parameter
View Answer
Java text field can allow the editing of ____________ text.
A. Single character
B. Single line
C. Multi line text
D. All of the above
View Answer
Light weight component of java can ___________.
A. Add in light weight component
B. Add in heavy weight component
C. Both a & b
D. None of the above
View Answer
What is the correct way to set “red” background color of java frame?
A. Jframe.setbackground(color.red);
B. Jframe.setbackground(red);
C. Jframe.setbackground();
D. Setbackground(red);
View Answer