Snylt Master

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

Recent posts by Snylt Master

Hi! Have you read A programmers guide to Java certification?
Chapter 8 covers object lifetime/ garbage collection!
I understand if you failed the question on garbage collection. It's a difficult task. At least I think so.
Altso try too search javaranch for garabage collection.
Hello moderators and anybody else who can help me!
When I first became a rancher I tried to register by my name lastname was already taken, so I used a handel instead. Now, after beeing at javaranch for a while I'll noticed that allmost everybody uses their real names. My question is. Can I change my name and still keep my posts?
------------------
Preparing for the Java 2 Certification exam
23 years ago
Hehehhe! Your welcome!
23 years ago
Hi Amy!
Try this link. http://www.javaranch.com/campfire/StoryBits.jsp
Hope this helps!
------------------
Preparing for the Java 2 Certification exam
23 years ago
Hi!
Take a look at the follwing code.
<code>
public class test{

void aMethod(){
class innerClass{
// In a method variables and classes cannot be marked with access modifiers
}
}
}
</code>
Correct me if I'm wrong
Hi! A static inner class is a top level class. You can instansiate this static inner class by using
Code:


<CODE>
public class test{
public static class test1{

public void test1Method(){
System.out.println( "Method in inner static class" );
}

}

public static void main( String args[] ){

test1 t = new test().new test1();
t.test1Method();
/**
* You can altso use test1 t = new test1() because the test1 class is static.
}
}
</code>

23 years ago
Original post:


<CODE>
Hi!
128>>1 gives 64, but why??
I think if 128 = 10000000
10000000>>>1 = 11000000
the restul will be 192 because the operator >> added to the left side will be the same value as the leading sign bit.
thanks in advanced

</CODE>


I don't exactly understand what you are saying but.
128 in bits is
<code>
00000000 00000000 00000000 10000000
128 >> 1 // this means that the wole bitpattern will move a step to the right. The rightmost bit falls out and disappears. Since the leftmost bit is 0 the bitpattern will add a 0 to the bitfield
that's leaving the bitfield with
00000000 00000000 00000000 01000000 = 64
</code>
Please read the http://www.javaranch.com/campfire/StoryBits.jsp
it will explain bits for you.


------------------
Preparing for the Java 2 Certification exam
I think Ashik is right.
[This message has been edited by Snylt Master (edited July 26, 2001).]
Thanks for the post Ajith Kallambella
Hi!
When using server side javascript you can use the oop. With vb this sloves. Don't use oop with Vb that is.
What's the save button suppose to do?
Here's an button that has save as value
<input type="submit" value="Save">
Please be more specific.
I dunno but it can. The system makes a cast to 3.0!
can anyone explain this?
23 years ago
Thanks Dave! I've got it now . I did a lot of tests and It's seems to be right!
Thanks again!
------------------
Preparing for the Java 2 Certification exam
Thanks Thomas!
------------------
Preparing for the Java 2 Certification exam