Anand Divakaran

Greenhorn
+ Follow
since Jul 20, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Anand Divakaran

Hi All,
I successfully completed the OCA SE 7 Programmer 1 Exam. Got 95%


Thanks,
Anand
12 years ago
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]

Thanks in advance
Anand
12 years ago
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 was reading the java buzzwords when i came across the buzzword HIGH PERFORMANCE, it spoke on jit compilers .

what are JIT Compilers and how do they improve the performance in the context of java?
17 years ago
i'm writing a program wherein when i specify the filename it searches in all the available drives for a match.

is their an alternative way to do it , other than by using list() ?
17 years ago
This is my situation.

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();

it gives me nullpointerexception how come?
17 years ago
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...
17 years ago
could you tell me how to compile the program and to run it,

let's assume its located as the way its mentioned above..

thnx
17 years ago
i think if you set the path variables , you should be able to

but haven't tried it yet
17 years ago
i'm working with windows vista home premium

i have compiled programs where i dont use packages..
so its not my very firs program
17 years ago
How do i compile and run this program...

this is my path where the MyPack folder is..
g:\Program Files\java\jdk1.6.0_01\bin\examples\MyPack



Edit by mw: Added Code Tags.
[ July 20, 2007: Message edited by: marc weber ]
17 years ago