Just thought I would share as a similar question came in our prelims : String s = "hi"; System.out.println(s.indexOf("1")); Output for this is -1 |
|
asked by Rohan Gupta (rohang37) 6 years ago | |
3 |
Check this out: |
|
asked by Darth Vader (aj87) 6 years ago | |
6 | |
Pls sum1 explain me about class ,instance and local variables and methods |
|
asked by Kousalya Senthilkumar (laks2002) 6 years ago | |
1 |
Can anyone explain " expulsion " in football? |
|
asked by Aditi Prasad (pp201540) 6 years ago | |
5 |
PLEAse help!! Explain differnce between local,instance and class variable? |
|
asked by Onkar Borade (onkarborade) 6 years ago | |
1 |
public class sales { int invoice=1234; static pro_code; public static void main() { sales s= new sales(); int price=1000; s.show(price); } void show(int pr) { System.out.println(invoice); System.out.println(pro_code); System.out.println(pr); } } Name the following from the above code: (i) class variable // pro_code?? (ii) local variable // price?? (iii) instance variable //invoice?? (iv) method variable // pr?? Are these answers correct? Please help!! |
|
asked by Shreya Bhagat (hermione02) 6 years ago | |
3 |
any eco students ??in our papaer 4 marks were out of scope right`??? |
|
asked by Aryan Kapoor (aryan9917) 6 years ago | |
0 |
whats the difference between a method and a function |
|
asked by Rtstud (mdarfath) 6 years ago | |
3 |
int z=148; while (10>9) { if(z<139) break; System.out.println("computer" +z); z=z-3; }System.out.println(z); How many times the loop will execute ? What is the output? |
|
asked by Tiara Elizabeth (thejtthomas) 6 years ago | |
2 |
Can anyone pls... Explain me selection and and bubble sort program with the help of dry run |
|
asked by Mokshil Shah (phoenix80) 6 years ago | |
2 |
Page 15 |
ICSE chat