premanand sreedharan

Greenhorn
+ Follow
since May 06, 2007
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 premanand sreedharan

class one
{
static int count =0;
public one()
{
saycount();
}
static void saycount()
{
count++;
System.out.println(count);
}
}

count's value 1.

When we are using static variables and methods there is no restriction that they should be used only with super keyword

If this is not what You are looking for pls revert back...

Folks,please correct me if im wrong
long i=1 and long i=1L

These both are the same hence the same applies to the above
long i=1 and long i=1L

These both are the same hence the same applies to the above
I need a simulator to take up scjp 1.4.. is there any link to download a full version of whizlabs preparation kit.(crack)?? is there any other free simulator availble.. im not lookin for trail version of it.
class test
{
static int i=10;
public static void main(String a[])
{
test t=new test();
System.out.println(" ans1"+i+"ans2"+t.i);
}
}

why does these two output differ? i got two different answers for this pls help me in this