To delete a file, we can use an instance of class file.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
Declaring a method synchronized guarantees that the deadlock cannot occur.
With javadoc, which of the following denotes a javadoc comment?
When we invoke repaint () for a Component, the AWT invokes the method:
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
A string object can not be modified after it is created.
Servlet has ___________
It is perfectly legal to refer to any instance variable inside of a static method.
Which of the following are the wrapper classes?
A static class method can be invoked by simply using the name of the method alone.
When we implement an interface method, it should be declared as public.
A Java monitor must either extend thread class or implement Runnable interface.
A package is a collection of
Which of the following command lines options generates documentation for all classes and methods?
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
When we implement the Runnable interface, we must define the method
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
A panel can not be added to another panel.
A catch can have comma-separated multiple arguments.
Which of the following keywords are used to control access to a class member?
It is perfectly legal to assign a subclass object to a supper class reference.
executeUpdate(------------) returns ___________
Submit button always fires doPost(...)
JSP files creates ________________
A JSP file can be stored_________________
In the code below, what data types the variable x can have?
In order to connect to a database through java program we must create _______-
A method declared as static can not access non-static class members.
Which of the following methods can be used to change the size of a size() *resize()
A final class may not have any abstract method.
We can add more than one class(es) at the time of compilation Java Beans.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter