vinayak manda

Ranch Hand
+ Follow
since Jul 27, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vinayak manda

Hi,

I'am a great fan of your books,I'am preparing for SCWCD now..Hoping to take it in first week of Jan.Ofcourse I'am holding HFS in my hands now..

As many graduate students interested in Java across the world are taking up different Sun's certifications. I wanted to know does Sun MicroSystems itself provides any employment opportunities for the certified students. I know that just writing certifications isn't enough,experience also matters to become a "Java Professional". But for Students looking for Entry level positions in IT companies cannot gain experience until given an opportunity. I wanted to know does Sun has any programs which hires and trains the certified students.

Kathy, I had read that you are a Master trainer for Sun Microsystems.If you could pour in some ideas about this would be helpful.
[ December 22, 2004: Message edited by: Barry Gaunt ]
20 years ago
Hi All,

Can anyone brief me through the difference between SCWCD 1.4 and SCWCD 1.4 Upgrade.

Thanks.
Please ignore the post ,am out of the bug with the help of Javaranch FAQ
Hope most of you all might have worked with the BeerSelect.java and BeerExpert.java examples from HFS.

I was doing well until I compiled the BeerExpert.java,but when I made the changes in BeerSelect.java as given on page 84,and when I compiled it on cmd prompt I get :

C:\MyProjects\beerV1>javac -d classes src\com\example\web\BeerSelect.java
src\com\example\web\BeerSelect.java:2: package com.example.model does not exist
import com.example.model.*;
^
src\com\example\web\BeerSelect.java:16: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src\com\example\web\BeerSelect.java:16: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src\com\example\web\BeerSelect.java:19: cannot resolve symbol
symbol : variable it
location: class com.example.web.BeerSelect
while(it.hasNext()) {
^
src\com\example\web\BeerSelect.java:20: cannot resolve symbol
symbol : variable it
location: class com.example.web.BeerSelect
out.print("<br>try : " + it.next());
^
5 errors

I would like to mention that I had created a dummy workspace in my IDE which has the same flow of the packages and java files as given in HFS,they work well.

Then why am I facing this problem........where am I going wrong.

Thanks.
Hi all,

I'am trying to download and install Tomcat in Windows XP. But I'am confused which link do I need to click on for the s/w.In this link provided below..which link and version can I use with windows XP.Please mention the name on the link displayed in this page.

http://jakarta.apache.org/site/binindex.cgi

Thanks
I'am sorry, I couldn't post the question before...

The question is when String s3 gets the value "EFG" and later s4 also gets the value "EFG", as the literal goes into the string pool,then s3 and s4 should point to the same reference.
Then why should (s3 == s4) return false.

Please clear this doubt.
Excuse me as I'am not sure that I can create new thread abt this topic

Which of the following statements are true of the following code?

1)If it is run with no command line parameter it will show Hello there on the console
2)If it is run with no command line parameter an IndexArrayOutOfBoundsException will be thrown
3)If a command line is passed to the program it will be printed out after the word "Hello"
4)This code will not compile

Answers are 2 & 3. Correct if I'am wrong,as String array declared at class level is instance variable,so a[0] in main has to compulsorily search the arguments at the command line. Then why is this statement "The String array passed to main will shadow the one created at class level" valid.
Which are valid/invalid and if so why?

String s = "\n";
String s1="\r";
String s2= "\u000a";
String s3 ="\u000d";
String s4="'\u0041'";
String s5="\u0041";
String s6 ="\uD7AF";
Please follow the link below

https://coderanch.com/t/246350/java-programmer-SCJP/certification/Shift-Operation-negative-operand

left operand << right operand
As been mentioned if the left operand is int then only 5 bits will be selected from the right operand,and if it is long then 6 bits are selected.
Then how about if it is short?

And also does the above applies to the three shift operators ( << ,>>, >>> )
[ September 24, 2004: Message edited by: Barry Gaunt ]
Please have a look at the below code.. This is from K&B Q.The question is after line 6 runs how many objects are eligible for garbage collection


And the answer is 1 , I think 0. Please correct me where am I going wrong

I think
1)after m1 method is called both x and mx are referring to the same object,and then mx refers to new object created on line 9.
2)And then this same object returned from m1 is been assigned to x2 on line 4 (i.e mx and x2 are referring to the same object).
3)x4 is new object created on line 5
4)On line 6 x2 refers to the object referred by x ( i.e x and x2 point to the same object).
All the objects created have references to them,so which object is garbage collected
class XYZ {
public static void main(String args[]) {
int j=017;
int i=(byte)j>>2;
System.out.println(Integer.toBinaryString(i));
}
}

Answer is 11,but I was expecting it as 00000011,
Can anyone please explain this.
Thanks Corey ,

I got the assignment part ,,but I'am confused whether compiler makes a check if b is declared or not before the assigment is done.
Hi all,

Please have a look at the below code :

Class A {
int a = 7*b; // legal forward reference
static int b=4; }

Since a class is always initialized before it can be instantiated,an instance initializer expression can always refer to any static member of a class. // I agree with this statement

But what happens here in this code below :
class B {
int a=b=20; //legal forward reference
int b;
}

I found this code in Khalid Mughal'c book (Page No 333) and it says that the statement is legal,here I'am confused because I thought it will be legal only when b is static
Can you explain how it works....