Vijayakumar Ramakrishnan

Greenhorn
+ Follow
since Dec 16, 2000
Merit badge: grant badges
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 Vijayakumar Ramakrishnan

Hi all,
Finally cleared of the exam with 66% marks not a great score but am happy with it.. coz am a Chemical Engr with no back ground in computers and just startred off in computers in October to learn java and Oracle after quitting my job.
The questions r really great not much of beating around the bush they r fairly straight and excellent i got poor marks in awt package ,garbage collection, java lang & util otherwise it was quite distributed.
Gotta search out for a job and hope to get one soon!!!
Thanks a lot to the members at javaranch and to Maha whose discussions on threads helped me a lot..
Vandanam,
vijay.

23 years ago
Hi..
Congrats..
Please throw me some light on threads questions and r IO questions fairly straight..
Vandanam,
vijay
23 years ago
Congrats..
Plz let me know the best mocks uve done and the type on questions on threads..
Vandanam.
vijay
23 years ago
Hi all,
The answers given are 4 & 5.Why not 3..i dont understand why 4 is the answer.
Vandanam,
vijay
6). Which two demonstrate a "has a" relationship? (Choose two.)
1.public interface Person{ }
public class Employee extends Person{ }
2.public interface Shape{ }
public interface Rectangle extends Shape{ }
3.public interface Colorable{ }
public class Shape implements Colorable{ }
4.public class Species{ }
public class Animal{private Species species;}
5.interface Component{ }
class Container implements Component{
private Component[] children;
}
Hi SCJP's,
I'd like to know which mock scores r near to the original exam score coz some mocks i score well and in some i score quite less.
Vandanam,
vijay
Hi all,
The output of this program is :
Goodnight,Dick.
Please explain ...
Vandanam,
vijay
class Super {
static String greeting() { return "Goodnight"; }
String name() { return "Richard"; }
}
class Sub extends Super {
static String greeting() { return "Hello"; }
String name() { return "Dick"; }
}
class statictest {
public static void main(String[] args) {
Super s = new Sub();
System.out.println(s.greeting() + ", " + s.name());
}
}
Hi aru,
Thanks for it..
But a small doubt would the usage of j before intialisation flag off an error.
Vandanam,
vijay
Hi all
Please explain the output of this program.
inside method 00
inside method 1010
10
10
Vandanam,
vijay
public class bb
{
int i = amethod();
int j=10 ;
private bb()
{ int i=100; }
public int amethod()
{
i=j;
System.out.println("inside method " + i + j);
return j;
}
public static void main(String args[])
{
bb b=new bb();
int c = b.amethod();
System.out.println(c);
System.out.println( b.i);
}
}

Hi all,
Please explain this output from this program.
inside method I 00
inside method II 00
inside method I 1010
inside method II 1010
10
10
Vandanam
vijay
public class bb
{
int i = amethod();
int j=10 ;
private bb()
{ int i=100; }
public int amethod()
{
i=j;
System.out.println("inside method I " + i + j);
System.out.println("inside method II " + i + j);
return j;
}
public static void main(String args[])
{
bb b=new bb();
int c = b.amethod();
System.out.println(c);
System.out.println( b.i);
}
}

I go for C,E.
C is done by giving a call the protected void finalize() throws Throwable method of the Object.
E is true coz gc is a low priority thread.
Vandanam,
Vijay
Where from can i get those specs??
Regards,
vijay
Hi
Good show friend..im going for the SCJP on 2nd Jan.Plz send me the break up of the pattern and the best reference for threads.
Thanx,
vijay
Plz mail to vijayrvk@yahoo.com
23 years ago
Hi all,
Please help me with this problem..The output is 22..Please explain !!
Vandanam
vijay

class Base {
int i;
Base() {
add(1);
}
void add(int v) {
i += v;
}
void print() {
System.out.println(i);
}
}
class Extension extends Base {
Extension() {
add(2);
}
void add(int v) {
i += v*2;
}
}
public class TestThread3 {
public static void main(String args[]) {
bogo(new Extension());
}
static void bogo(Base b) {
b.add(8);
b.print();
}
}
Its coz the instance variable makes it presence felt inside method blocks or blocks only else if its used directly the compiler flags off an error.
Vandanam,
vijay
class outer{
int y = 5;
class Inner {
int p;
{p=y;} // now its OK I
public void test(){
p = y; // works fine why ??? why and how ??? II
System.out.println(p);
}
}
}
Its quite simple in the while loop & do-while loop the checking(boolean condition) is checked first and then the increment is done.
Whereas in a for loop the increment is done first and then the condition is checked.
Vandanam
vijay