#1 By default all class in java are _____
#2 ______ is data type in java.
#3 “+” operator are used for ________
#4 In Java, the _________ keyword is used to instantiate an object.
#5 The process of copying data between method calls is referred to in programming as _________
Call by value
Call by reference
#6 A class have two or more methods with the same name but different parameter lists is called ____________
None of the above
#7 A _______ is a special method in a class that is invoked when the object gets instantiated.
#8 A Class uses the ____ keyword to inherit from another class.
#9 The _________ keyword can also be used in the child class when the child wants to invoke an overridden method in the parent.
#10 A _______ class can be extended but cannot be instantiated directly.
#11 The _________ keyword may be applied to a class, indicating the class may not be extended.
#12 A ___________ is a collection of abstract methods.
#13 we can throw your own exceptions using ________ keyword.
#14 Which method used in awt to drawstring _______
#15 The ________ method returns the number of character in the String.
#16 _________ method can be used to position a dialog on the screen.
#17 Repaint() calls the ________ method.
#18 ________ method can be overloaded.
#19 Two Classes in java enable communication using ___________
Data and Method
Array and Pointer
Virtual and Data
Constructor and Destructor
#20 ________ Object is needed to group checkboxes to make them exclusive.
#21 The default layout of the panel is __________
#22 When we are working on a Windows based platform, the path separator of a file should be _______
#23 The __________ method helps in clearing the buffer.
#24 Reading or writing can be done even after closing the _______ and___________ source.
Input and Output
InputStream and OutputSteam
Read and Write
InputRead and OutputRead
#25 The Class, ______ does not allow appending data to an existing file.
#26 ___________ are also called nested classes.
#27 ________ interface is used for creating Statement in JDBC.
Both a and b
#28 The methods in a __________ class can be final.
#29 __________ is the default layout manage for Frames.
#30 ___________ is a abstract class.
#31 To compare two strings for equality, one can use ____________
#32 __________ is the default value of a Boolean.
#33 A class can have only a __________ parent.
#34 ___________ class is used to build Client Application.
#35 ___________ is the return type of execute update method in the class statement.
#36 Java networking capabilities are centralized in the ____________ package.
#37 ___________ and _____________ classes are wrapper classes for integer and character datatype.
int and char
string and char
float and int
int and string
#38 ___________ , _________ and _____________ are statements available in SQL Package.
ODBC, JDBC and API
C, ODBC and Java
C++, C and Java
#39 In java.Sql.package, Connection is ____________
#40 _____________ is the default priority in thread.
#41 Only One layout manager can be used per ___________
#42 Java supports _____________ inheritance.
#43 __________ contains both abstract and non-abstract methods.
#44 JVM stands for _____________
Java Virtual Machine
Java Value Memory
Java Venue Machine
#45 Access Modifiers for __________ and ____________
Static and Private
Static and Public
Both a and b
#46 In java, char datatype is _________ bit Unicode characters.
#47 If the method name and class name are same then, it is called as ____________
#48 Super Keyword is used for _____________
Act like this keyword
to call instance variable
To access public
#49 Does the class can extend more then ________ class.
#50 Repaint() method takes ____________ arguments to update a part of the screen.
#51 ____________ class is used by server to listen and accept connections to the clients.