venkatg

Greenhorn
+ Follow
since Sep 07, 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 venkatg

Originally posted by Deepak M:
hi Guys,
So I finally made it after 3 months of JLS, and JavaRanch.
And NO mock tests !
That's right, the only test I took was the Beta exam (which was more than just a mock test) last week.
Guys, one word of advice for u ... Read the Java Language Specs - esp the chapter on Classes, Interfaces, Arrays and Expressions.
If u can't find it on the Net, I'll mail it to u personally.
For I/O - I referred to the API and stuck the objectives.
For AWT - Core Java gives a good explanation, RHE is good for event handling.
For Threads, refer to CoreJava Volume 2 - nothing beats it !
Be good to yourself - read the JLS
I wonder where I went wrong... I think its just not possible to score 100% even if u get all qts right. Its probably programmed that way.
After all, noone's perfect, and Sun very well believes in it !
My next goal - SCJD and an XML certification !
All the best to all of u out there.....
I'd love to be of help to anyone who plans to take the real exam after October as well.
From the beta exam, its pretty obvoius the new exam has the same level of difficulty. However, you are now provided with the number of correct choices to be selected in case of more than one correct answers.
[This message has been edited by Deepak M (edited September 01, 2000).]



hi deepak
congrats
if u dont mind why cant u send me all the material u reffered to my mail account
venkat21_99@yahoo.com
bye
venkateshwarReddy.g
hi friends,
why exactly OODA is needed?
how can we say briefly in two lines ?
thanks
venkateshwarReddy

Originally posted by Netla Reddy:
Please could you some body give the answer.?
Question 28)
What will happen when you attempt to compile and run the following code
public class As{
int i = 10;
int j;
char z= 1;
boolean b;
public static void main(String argv[]){
As a = new As();
a.amethod();
}
public void amethod(){
System.out.println(j);
System.out.println(b);
}
}
1) Compilation succeeds and at run time an output of 0 and false
2) Compilation succeeds and at run time an output of 0 and true
3) Compile time error b is not initialised
4) Compile time error z must be assigned a char value

Given Ans is 1:
But I belive that answer is 4;
Thanks in advance


hi netla,
boolean value will have false by default.
sothe result is 1

Originally posted by Netla Reddy:
Please could you some body give the answer.?
Question 28)
What will happen when you attempt to compile and run the following code
public class As{
int i = 10;
int j;
char z= 1;
boolean b;
public static void main(String argv[]){
As a = new As();
a.amethod();
}
public void amethod(){
System.out.println(j);
System.out.println(b);
}
}
1) Compilation succeeds and at run time an output of 0 and false
2) Compilation succeeds and at run time an output of 0 and true
3) Compile time error b is not initialised
4) Compile time error z must be assigned a char value

Given Ans is 1:
But I belive that answer is 4;
Thanks in advance



hi netla,
i got u question,
As u r declaring the variable in the class no need to intialise them.
if at all u want to write a variable in the main method u should and must initialise that variable.
coming to char it will assign value 2^16.
i think u can get my answer
thanks
VenkateshwarReddy
hi friends,
iam struggling with serialization is that
we take any object that implements the serialization interface.
Even though serialization interface is not having any methods
we are implementing it.
It converts the object in to sequence of bytes and will restore fully in to object ,across n/w
how is it possible,howz it able to convert object into bytes and able to restore the object.
if any one please give me a way to understand this?
thanks
------------------
23 years ago

Originally posted by bkkumar:
hi friends!
i got one doubt regarding garbage collection.
when actually garbage collection takes place?is it just sporadically (OR) when no references to th objects exists.
(OR) when memory is full.
pls give the reply ASAP.


hi bkkumar
Its a good question,
Actually garbage collection takes place when no references
to that specific object exists.
By that it releases the memory by which performance will also
increases.
thanks
Any one can throw a light on my explanation

Originally posted by bkkumar:
hi friends!
i got one doubt regarding garbage collection.
when actually garbage collection takes place?is it just sporadically (OR) when no references to th objects exists.
(OR) when memory is full.
pls give the reply ASAP.


hi bkkumar
Its a good question,
Actually garbage collection takes place when no references
to that specific object exists.
By that it releases the memory by which performance will also
increases.
thanks
Any one can throw a light on my explanation
23 years ago