Bhaskar Dabbigodla

Greenhorn
+ Follow
since Aug 02, 2002
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 Bhaskar Dabbigodla

Hi All,
I have taken exam on October 11th and passed with a score of 98%. I missed one in JavaLanguageFundamentals.

I am one of the oldest memebers of Javaranch site (Since August 2002). But not active participant. I am working in Cognizant Technology Solutions, Bangalore. I am planning to take SCBCD, please suggest me some good books and other resources.

I would like to thank Kathy Sierra, Bert Bates and Khalid Mughal for their excellent books, Marcus Green and Dan Chisholm for their very good mock exams and other fellow ranchers for their help.


Thanks and Regards,
Bhaskar Dabbigodla
SCJP1.4 (98%)

[ October 12, 2005: Message edited by: Bhaskar Dabbigodla ]
[ October 12, 2005: Message edited by: Bhaskar Dabbigodla ]
14 years ago
Final variable must be initialized before the end of the constructor. In your code there is no user defined constructor. So either you have to initialize it at the line final int i = 7; or you have to add a constructor and initialize it as shown in the followng modified code.



Best Regards,
Bhaskar Dabbigodla
Answer C is OK but I am surprised how D is correct. Is it not required to represent the InnerClass with OuterClass.InnerClass i = o.new InnerClass() notation.
Thank you Beno�t, Thank you very much for your reply.
In my scenario I am Compressing/Decompressing an XML document. After Decompression I need to have the XML document with attributes unaltered( Attributes should not be sorted).
Thanks in Advance
Bhaskar Dabbigodla
Hi,
I am generating the xmlstring from the xml document.In doing so attributes are getting sorted by attribute name when xalan.jar is placed in the classpath.If xalan.jar is not there attributes are not getting sorted.The code I used for generating attributes is as follows
NamedNodeMap namedNodeMap = node.getAttributes();
for(int j=0;j<namedNodeMap.getLength();j++) {
if(((Attr)namedNodeMap.item(j)).getSpecified())
System.out.println(namedNodeMap.item(j).getNodeName());
System.out.println(namedNodeMap.item(j).getNodeValue());
}
I dont want the attributes to be sorted even though xalan.jar is present.
Thanks in advance
Bhaskar Dabbigodla
Thank you very much for your suggestion. At last I did the same
How to retrieve Prolog along with encoding and standalone from an XML Document using any Java based XML Parsers

Thanks in Advance