Trending ▼   ResFinder  

ICSE − Q & A

ICSE
Indian Certificate of Secondary Education (ICSE), New Delhi
+Fave Message

Ask a Question

Answer a Question!

ResFinder - Thousands of Practice Papers

Whats the output:-
s1 = "ABC";
s2 = "ABCD";

int n = s2.compareTo(s1);
System.out.println(n);
asked by Ragini Jain (adityajain1234) 6 years ago
3

+ 1 more questions by adityajain1234  

The Java keyword which is used to convert a variable into constant??
Is it final or is it static
asked by Jeff mckinley (chende) 6 years ago
5
// Copy this code in BlueJ and be amazed!

public class Wow
{
    public static void main(String[] args) throws Exception
    {
        int a=10,b=0,c=10;
        String s1="TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WHq!WFs XDt!";
        a=s1.charAt(b);
        
        while (a != 0)
        {
            if (b < 170)
            {
                a = s1.charAt(b);
                b++;
                while (a > 64)
                {
                    a--;
                    if (++c=='Z')
                    {
                        c/=9;
                        System.out.print((char)(c));
                    }
                    else
                        System.out.print((char)(33 ^ (b & 0x01)));
                }
            }
            else
                break;
        }
    }
}


//STRICTLY NOT FOR EXAMINATION PURPOSES!
asked by RaBh (rahulbhardwaj2002) 6 years ago
7
What do you mean by...sole trapping in football??
asked by Vaishnavi Kattimani (eleven) 6 years ago
3
Is there no way to extract individual words from a string to perform various operations, expect by using array? I am confusion.
asked by Gargie D'souza (gar_d02) 6 years ago
4

+ 1 more questions by gar_d02  

An interesting fact:

Are comment lines in Java programs executed by the compiler??
Add a response to that first and then scroll down,please.













//How are you
//Looking for the answer its coming

//\u000d System.out.println("A comment that executes");




Looking for the output:
A comment that executes




Confused,scroll down




Actually,when we use \u000d then what follows next is regarded as the next line in Java



So the code would have been clear if I would have written like this:


//\u000d
System.out.println("A comment that executes");



Enjoyed it after a nerve-racking day of Study??



Strictly not for exam purpose
and if then at your own risk.
asked by Rishi dey chowdhury (rishidc) 6 years ago
0

+ 1 more questions by rishidc  

Can someone give me the link for prefix and postfix exercises and predict the outputs...
ASAP
asked by Kris Shibu (zeusinmars) 6 years ago
0
precedence of operators in java -(arithmetic,relational,logical,ternary) pls arrange
asked by Atharva45 (arya9591) 6 years ago
2
All escape sequence characters with their use and examples??
asked by Abhinav Sharma (monstercat) 6 years ago
1
Can't we use StringTokenizer in our programs.......There is no chapter related to it but in the book the sample programs jave been made by making use of StringTokenizer.......BTW its very easy....
asked by Aqib Suhail (aqibsuhail) 6 years ago
1

<< Prev

    Page 140    

Next Page >>

ICSE chat

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us