What is the correct answer?


Which of the following string can be used as mode string for creating a RandomAccessFile object?

A. "rw"

B. "wr"

C. "0"

D. 'w''

Correct Answer :

A. "rw"

Related Questions

Consider the following statements: int x = 10, y = 15; x = ((x < y)… JSP files creates ________________ The break statement is required in the default case of a switch selection… executeUpdate(------------) returns ___________ Objects are passed to a method by use of call-by-reference. Consider the following class definition.Class Student extends String{}What… Throwing an exception always causes program termination. What does the following line of code do?TextField text=new TextField(10); The methods wait() and noify() are defined in Which of the following keywords are used to control access to a class… Two methods cannot have the same name in Java. Which of the following represent legal flow control statements? Connection, Statement are interfaces and ResultSet is a class. executeUpdate automatically updates data because___________ If you want to assign a value of 99 to the variable year, then which of… We can over load methods with differences only in their return type. For all insert, update, delete, query operations on a database, ResultSet… Which of the following command lines options generates documentation for… Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division… Which of the following statements are true? It is an error to have a method with the same signature in both the super… Which of the following will produce a value of 10 if x = 9.7? Every method of a final in class is implicitly final. It is perfectly legal to assign a subclass object to a supper class reference. When we invoke repaint () for a Component, the AWT invokes the method: Declaring a method synchronized guarantees that the deadlock cannot occur. Every call to wait has a corresponding call to notify that will eventually… We can add more than one class(es) at the time of compilation Java Beans. A string object can not be modified after it is created. Submit button always fires doPost(...)