Srini Hari

Greenhorn
+ Follow
since Jun 20, 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 Srini Hari

Thanks Chetan I got it!
Srini
Thanks Chetan I got it!
Srini
I tried downloading JDK form SUN site..since the transfer rate was extrememly slow i stopped it.Is there any site form where i can run my programs(in remote server)instead of downloading JDK into my PC.
thanks
Srinivasan Hariharan
23 years ago
Following is the program for which i needed the explanation,as iam new to java.
class stat{
static int x=5;
int z=5;
final int y=6;
public static void main(string arg[]){
stat s= new stat();
s.x=7;
s.z=9;
s.y=8;
system.out.println(s.x);
system.out.println(stat.x);
system.out.println(stat.z);
system.out.println(s.z);
can somebody explain the output of this.
thanks
srini
hi All
Iam planning to takeup SCJP shortly.Iam having 9 years of experience in Distributed controls sytems and industrial automation.With passing SCJP..can i hope to get a job in IT field.Is SCJP sufficient to switchover to IT field.
thanks
Srinivasan
23 years ago
Rahul
Thanks for ur reply.
srini



rahul
i wanted to know if u concatenate an empty string(its inverted quotes only without any string inside, its just " " only).what will be the result in this case.
thanks
srini
rahul
pls explain to me how the result has been arrived in both the cases.
thanks
srini
can anybody suggest me a good book for a beginner in Java,who is new to OOPs.
thanks
srinivasan
23 years ago
Can anybody explain the following:
I have done the following.
int i=10
int j=9
system.out println(i+j) gives 19
system.out println("" +i+j) gives 109
system.out println(i+"" +j) gives 109
system.out println(i+j+"") gives 19
can anybody explain the above.
thanks
srini
Can anybody explain to me the following
1:void infiniteLoop()
2:{
3:byte b = 1;
4:
5:while ( ++b > 0 );
6:
7:System.out.println("Welcome to Java");
8: }
A) The loop never ends(infiniteLoop).
B) Prints "Welcome to Java".
C) Compilation error at line 5. ++ operator should not be
used for byte type variables.
D) Prints nothing.
The answer is C,can anybody explain how