posted 23 years ago
Ill try to answer some of these:
1) The default no-argument constructor is created b y the compiler. If the programmer has supplied ANY constructors of any type, the compiler does not create the no-argument constructor.
2)I think a variable can be declared final in any scope. As a matter of fact, a final local variable has the special property of being able to declare it, and defer assignment of a value to it until later.
3)You dont need to explicitly call the toString() method when printing an object. The toString() method is implicitly called when you do System.out.println()
4)I dont really know this one. I do know that the absolute path gives you a complete path where no other information would be necessary to find the file. I dont do enough io to know the difference between the two methods.
5)I think createNewFile() will do this for you.
Good luck!