Rubayat Islam

Greenhorn
+ Follow
since Feb 11, 2007
Merit badge: grant badges
For More
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 Rubayat Islam



Result: s1 and s2 are same.

The == for t1 and t2 surely fails as they refer to two different Test objects. s1 and s2 also refer to two different String objects (whose values are same). Shouldn't the (s1==s2) test return false?


when this code executes i prints nothing.

What i would like to know is what is the difference between == operator and
equals() method.
Hello everyone,

I need some links to very good Java programming tutorials that uses JOGL.
Please Help me out
16 years ago
The words
  • true
  • false
  • null
  • are not enlisted in the complete list of keywords of the K&B book, page 6. It should mean that i can use these as identifiers in my code. But complier detects error if i do so. Why aren't these words enlisted in the list then?
    Is there any underlying difference between following two lines?

    Integer i = 10;

    and

    Integer i = new Integer(10);

    Suppose I write

    Integer i1 = 10;
    Integer i2 = 10;

    then (i1==i2) test returns true. But if say

    Integer i1 = new Integer(10);
    Integer i2 = new Integer(10);

    then (i1==i2) test returns false.
    I've heard frm a frnd tht there's a SCJP Exam with the code 210-055. It is exactly as same as the 310-055. The difference is that it is cheaper and only graduate level students can sit for it. I've searched in the Internet but didn't have luck finding ne info abt this. Cud anyone pls help me?