B
Q. What will be the output of the following Java program? (Note: file is made in c drive.) import java.io.*; class files { public static void main(String args[]) { File obj = new File("/java/system"); System.out.print(obj.canWrite()); System.out.print(" " + obj.canRead()); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the output of the Java program?
Q. To create an InputStream on a socket, say s, which of the following statement isnecessary?
Q. What is the use of Access modifier "pubic" in Java language?
Q. Select from among the following character escape code which is not available in Java.
Q. What will be the output of following Java code?
Q. What do you mean by nameless objects?
Q. Enumeration in Java is ___.
Q. A primitive data type can be passed as an argument into a method
Discusssion
Login to discuss.