murthy ramana

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

Recent posts by murthy ramana

Hi,
I am planning to take SCJP 5.0 by April-09. Please inform me if any one from Banaglore has SCJP (CX-310-055) voucher.

Thanks and Regards,
Ramana.
16 years ago
hi folks,
i am using NetBeans IDE. i want to give the name of a properties file as command line argument to my program. at present i am doing it by setting the argument in the project properties. i want to know is there any other way - like entering the arguments in the DOS prompt. i want to enter the argument at run time directly in any propmt.

Thanks in advance,
murthy kvr
Hi Faisal,
Please go through the sentence carefully.

"All of the numeric wrapper classes provide an overloaded, static toString() method that takes a primitive numeric of the appropriate type..."

As per my knowledge the meaning of the above sentence is :
All the wrapper classes do provide overloaded toString(). But toString() methods of only numeric wrapper classes takes primitive numeric of the appropriate type. The overloaded methods of the Boolean and Character doesn�t take numeric values. They only take their respective types i.e., Boolean and char.

I hope this helps you��


Thanks and regards,
Murthyr kvr
hi Henry,
thanks for your time. Now i am clear about it.

Thanks and regards,
murthy kvr
hi,
what you said is absolutely correct. but i am unable to execute the following code:


int d = 10/0;

System.out.println(d);


thanks and regards,
murthy kvr
hi folks,

i think inner classes cant have static declarations - so we cant write main() in an inner class.

thanks and regards,
murthy kvr
hi,
i am able to execute the following code correctly:


double d = 10.0/0.0;
System.out.println(d);

BUT couln't execute the following segment:

double d = 10/0;
System.out.println(d);

its giving the following exception:
Exception in thread "main" java.lang.ArithmeticException: / by zero


can any explain the reason behind this.i think the ArithmeticException may not be applicable to double.

thanks and regards,
murthy kvr
Thanks Faisal,
for your motivating words. I am feeling much better preparing for SCJP now.

Thanks again,
murthy kvr
hi,
thanks for the replies. One of my friend has asked me this question. I told him that we can use a class through an abstract class. But i want to make sure that it is the only way to use a class without instantiation.

expecting some more replies,
thanks,
murthy.kvr
hi folks,
how can we use a class without instantiating it directly or indirectly.
thanks,
murthy