Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
sharon daze
Greenhorn
+ Follow
news
16
Posts
10
Threads
since Feb 08, 2009
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads
Recent posts by sharon daze
adb
Thanks
show more
16 years ago
Android
Backed collections
hi all ,
i am not getting concept of backed collections , i am referring K & B but how the ouput is getting displayed.
can you please explain me with example ?
show more
16 years ago
Programmer Certification (OCPJP)
Threads - hardest topic
Hi paul ,
This is the regular practice when you read a chapter and when you try to solve the examples of K&B ,they are quite difficult , but you have to go throgh it.
Thanks
My Blog about recent technology
show more
16 years ago
Programmer Certification (OCPJP)
Incorrect statement by Devakas
Yes you are right.
So what do you think which simulator should i use, for SCJP.
Thanks
show more
16 years ago
Programmer Certification (OCPJP)
Matcher and compliler problem
Hello all ,
while matching any string using matcher and compiler why find method always gets to the next token which do not exist in the macther argument.
See following code
package javaapplication1; import java.util.regex.*; /** * * @author Admin */ public class Example5 { public static void main(String[] args) { Pattern p = Pattern.compile("\\d*"); Matcher m = p.matcher("ab34ef88f"); boolean b= false; while(b = m.find()) { System.out.println(m.start() + " " +m.group()); } }
This code produces output like :
0
1
2 34
4
5
6 88
8
9
why i get 9 as output there no element at 9th position ?
Thanks
show more
16 years ago
Programmer Certification (OCPJP)
StringBuffer confusion ?
Hello all ,
how i can increase a value of StringBuffer.
For example if i have "A" inside StringBuffer element then how i can increment it to next letter.
Thanks & Regards
Sharon
show more
16 years ago
Beginning Java
Mistake in book
Yes thanks for your suggestion.
my blog
My blog
show more
16 years ago
Programmer Certification (OCPJP)
Versioning of classes ?
Hello all ,
can anyone give me a good example of how versioning of classes will affect serialization that it will throw an exception.
Thanks
show more
16 years ago
Programmer Certification (OCPJP)
Want the difference between String and StringBuffer
Hello all ,
String s = "abc";
String s2 = new String("abc");
if(s==s2) // this is true
then
String s = "abc";
String s2 = new StringBuffer("abc").toString();
if(s==s2) // this condition will be false
What is the difference between this two codes.
show more
16 years ago
Programmer Certification (OCPJP)
Garbage collection of strings ?
public class ImmutableStrings
{
public static void main(String[] args)
{
String one = "someString";
String two = new String("someString");
one = two = null;
}
}
How many object are ready to be garbage collection ?
I need explanation in detail.
Thanks
show more
16 years ago
Programmer Certification (OCPJP)
intern method
Hello all ,
can anyone give me a good example of how to use intern() method for string to refer to the same string object.
Thanks
show more
16 years ago
Programmer Certification (OCPJP)
Confused about string objects
Helllo all ,
is there any difference in
String s = "abc"
and String s = new String("abc");
in K & S book it is given that 1st statement will create one object and second will create 2 objects.
why is it so..
show more
16 years ago
Programmer Certification (OCPJP)
How to study ?
Hello all ,
can anyone explain how to study K & S sixth chapter it is too lengthy.
Name of chapter : Strings,I/O,Formating and parsing.
Thanks
show more
16 years ago
Programmer Certification (OCPJP)
K&S chapter 3 q-6
HI
answer is : -c
do you need explanation on this.
reply me if you need it.
Thanks
show more
16 years ago
Programmer Certification (OCPJP)
Review the code
Yes you are right
show more
16 years ago
Programmer Certification (OCPJP)