Hi All,
Could somebody explain how new Object[1] and new Object[2] can be used in the below snippet. I understand if new Object(), new Object() was used instead of new Object[1], new Object[2]
After creating a socket, can it be used to send and receive data . or is it each time i use it for sending or receiving i have to close the socket and create a new one?
i'm trying to locate a file in a directory , when i identify a file object as a directory i use the String[] list() method defined in File class but it oftens throws NULLPOINTEREXCEPTION !
if (fileobj.isDirectory()) String s[] = fileobj.list();
Assume i have a package tv, consisting of an interface and two classes class1 and class2 ,all the three stored in separate files within tv class2 implements the interface and extends class 1
i successfully compiled the interface file and class1. HOW DO I COMPILE CLASS 2...