hemant gome

Greenhorn
+ Follow
since Jul 24, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hemant gome

Hi Netla,
A char variable can be assigned to any value in the range of 0 to 2^16 - 1.
Hemant.
Dear Praveen,
here is the link and you have to register before taking exams.
http://certify.torolab.ibm.com/
Hemant.
Hi all,
I have taken some mock tests and I found that I was doing mistakes in AWT secion. I am doing good in all other sections.
Could you please suggest me any book or material which help me scoring good in AWT section also ?
Thanks,
Hemant.
Thanks Ajith and Mahalaxmi,
Could you please also tell me the info about the beta exam too which will be held before 23rd Aug 2000 ? I have already got a confirmation number in a mail from SUN but now I don't know how/where to register in India ?
Thanks again
Hemant.
Hi all,
Does anyone from Bangalore tell me, where is the SUN center
to register for SCJP2 exam ? What all documents one require to register for the exams ?
I have also got my confirmation number for SCJP2 beta exam.
Does anyone tell me how to register for that exam in India ?
The mail from SUN contains a phone number of Asia/Australia region. But I think it's not possible to call at that number.
Thanks in advance.
Hemant.
Hi,
Consider this simple code :
public class MyTest {
private static void main ( String [] args ) {
System.out.println ( "Hello friends!" ) ;
}
}
Output on jdk1.2.2 WinNT :
Hello friends!
The fact :
All of us know, private members/methods are accessible from within the class only.
My doubt :
Could someone plz clarify, how does java interpreter able to execute main() method even it is defined private ?
Thanks.
Hemant.
Hi Mita,
int i=3;
print3(i,++i,i+++i++);
Java evaluates expressions Left -> Right.
i = 3;
++i = 4;
a = i++ = 4;
i=5;
b = i++ = 5;
i=6;
so a + b = 9;
got it ??
Hemant.
The code above
sx = iy.toString();
^^^^^ Please note this change
sy = iy.toString();

Hemant.
I am full agree with rajsim. Shift will be performed as long
but during assignment leftmost 16 bits will be discarded to fit
the result in int.
Hemant.
[This message has been edited by hemant gome (edited July 25, 2000).]
Aman,
It's perfectly legal to assign a value to char variable in
the range of 0 to 65535(2^16 - 1).
Out of this range, explicitly cast the value to int.
Hemant.
Aman,
State your question clearly, options are unreadable.
Hemant.
Above program compiled successfully on jdk1.1.7B-6 version.
So there should not be any problem with higher versions.
Hemant.
Hello Deepak,
Please compare close braces with open braces in the program,
then try to compile. There is an extra '{' after
new Cyclic(); // create a Global.Cyclic
Hemant.
You can apply them on top-level inner classes, but not on the
inner classes defined in a method.
Hemant.