Monika Pasricha

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

Recent posts by Monika Pasricha

Hie, I am also preparing for the exam. We delhites can share resources and knowledge for the same. My mail ID is monikap@niit,.com.
I got the answer.. The reason is same as for the first output.
class ex
{
public static void main(String a[]) {
int i=1;
System.out.println(i++ + i++);
System.out.println(((i++) + (i++)));
System.out.println((i++) + (i++));
}
}
The output is 3, 7, 11.
First output is clear.
Please clarify last two outputs.
Thanx
Where can i find online material on Operators and assignments?
Thanx
Monika
Where can i find errata for Roberts Heller book?? I have tried sybex site, but it is giving some error. Plez help
Thanx
Monika
24 years ago
Thanx everybody. Now i got it.
Monika
class A {
int a = f();
int f()
{
return 1;
}
}
class B extends A
{
int b = a;
int f()
{
return 2;
}
}
public class CtorDemo1
{
public static void main(String args[])
{
B bobj = new B();
System.out.println(bobj.b);
}
}
The output is 2. I think it should be 1. acn anybody help me in this.
Thanx
Monika
What are the benefits of interpreted environment? I have read that one of the benefits is -speed of development - It eliminates the compile-link-load-test cycle.
plez explain the same.
JLS
Where can i find java language specifications on the net ?? and what all things do i need to study from the same??
"When a String object is concatenated actually a new String object is created, the previously reffered String is eligible for garbage collection. "
Why the previously refered string is eligible for garbage collection. I think when we concatanate a string, new string reference is created and the previous string remains as it is.
Plez clarify..
Congrats Roshan...
24 years ago
Rani u can find many links in the 'Gramps' section of this site..
Congrats a lot Satheesh...
24 years ago