Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

vydhehi paruchuri

Greenhorn
+ Follow
since Aug 27, 2003
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 vydhehi paruchuri

Hi all:

How can we remove the line feed and carriage return from a string.

String str = "\r\n";

Thanks,

Vydhehi
I just started preparing for SCJD.

I have not used any Java IDE's until now.

Are there any good IDE's available for free download?

Vydhehi
Which version og JBuilder is free?
Group:

Can you suggest me a good site for Javadoc.

Vydhehi
Steven:

That was helpful. The way it looks I want to take SCJD before going for other certifications.

Thanks,

Vydhehi
Steve:

I completed SCJP and wanted to take higher certifications. But I am really confused what to take?

Vydhehi
What is the difference between SCJP and SCJD exam?

Vydhehi
Hi all:

I am planning to take SCDJWS.

What are the prerequisites for this exam.

Thanks,

Vydhehi
This is a question from Dan's Mock exam.

class A extends Thread {
public A(Runnable r) {super(r);}
public void run() {System.out.print("A");}
}
class B implements Runnable {
public void run() {System.out.print("B");}
}
class C {
public static void main(String[] args) {
new A(new B()).start();
}}

According to my understanding since we are passing an instance of B as Runnable target when we call start() method "B" should be printed but the answer is "A".

Could someone please explain me?

Thanks

Vydhehi
Even this question is from Dan's Mock exams.

I think I am getting terribly confused with operator precedence.



I evaluated expression at 1 as

m(m(1)+((m(2) % m(3)) * m(4)))

I again know I am wrong.


Vydhehi
This is a question from Dan's Comprehensive Exams.



How is the expression at 1 evaluated?

This is my evaluation x = ((a=true) || (((b=true)&&(c=true)))

I know I am wrong but can some please explain.

Thanks,

Vydhehi
Siva:

If you are using array initialize list,{1,2} to initialize an array then array should be declared in the same statement.

AID[1]= {1,2} //will not work causes a compile time error.

int[1] newArray={1,2} //this will work

Hope this helps.

Thanks,

Vydhehi
Tom:

I have a question about 7 question.

I compiled the code and I know that when the return type is String we can't return an reference of Object class.

Since Object is super class for String, why can't we return a reference to Object class?

Vydhehi