A string object can not be modified after it is created.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
When we implement an interface method, it should be declared as public.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
Which key word can protect a class in package from accessibility by the classes outside the package?
class.forName(...) creates an instance of java ODBC driver
A Java monitor must either extend thread class or implement Runnable interface.
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
Which of the following represent legal flow control statements?
In a single Servlet class we can use____________
When the string objects are compared with ==, the result is true If the strings contain the same values.
A method declared as static can not access non-static class members.
We can add more than one class(es) at the time of compilation Java Beans.
Declarations can appear anywhere in the body of a Java method.
To delete a file, we can use an instance of class file.
In RMI we invoke client method from remote server
Which of the following statements are valid array declarations?
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Which of the following methods can be used to remove a component from the display?
Any method in a supper class can be over ridden in its subclass.
It is perfectly legal to assign a subclass object to a supper class reference.
A final class may not have any abstract method.
The check box group class is a subclass of the component class.
What is java -g used for?
A JSP file can be stored_________________
A static class method can be invoked by simply using the name of the method alone.
What does the following line of code do?TextField text=new TextField(10);
Which of the following string can be used as mode string for creating a RandomAccessFile object?
Which javadoc tag is used to denote a comment for methods parameters?
Servlet can have ___________
An EJB is a server-side component that encapsulates the business logic of an application
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter