![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions A package statement must appear as the first line in a source code file (excluding blanklines and comments). Latest Answer : package statement must appear as the first line in a source code file and one public class declaration. ... The readLine() method returns null when it has reached the end of a file. Latest Answer : readLine() method of BufferReader class returns String and when it reaches the end of file file it returns null. ... A Java source code file takes the name of a public class or interface that is defined withinthe file. A source code file may contain at most one public class or interface. If a publicclass or interface The read() method returns -1 when it has reached the end of a file. Latest Answer : It returns null value if its a char type and -1 if its a byte type. ... setEditable() The File class is used to create objects that provide access to the files and directories of alocal file system. Two methods may not have the same name and argument list but different return types. Latest Answer : Two methods must have same name with different argument list , different return types. Only different return types is not sufficient. ... A program's main() method has a void return type. Latest Answer : default return typ of any any main method is int but we change it as per requirment if return typ is other than void then must write return stmt ... The ObjectInputStream class supports the reading of objects from input streams. A void return type indicates that a method does not return a value.
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||