Ask a Question | Answer a Question! |
Submitting your question...
ResFinder - Thousands of Practice Papers
Why is an object called a static data member?? |
|
asked by Aayush Joshi (aayushjoshi) 6 years ago |
1 |
can anyone tell me the problem with this snippet as I am not getting my output.
Purpose:
to enter 10 names of cities and their populations:
import java.util.Scanner;
class cit_pop
{
void main()
{
Scanner in=new Scanner(System.in);
System.out.println("Please enter the names of 10 cities and their populations:");
int p[]=new int[10];
String c[]=new String[10];
for(int i=0;i<10;i++)
{
System.out.println("Please enter the names of cities and their populations:");
c[i]=in.nextLine();
p[i]=in.nextInt();
} |
|
asked by Ashutosh Dash (ashutosh_dash) 6 years ago |
4 |
+ 3 more questions by ashutosh_dash
in a menu driven program, should default case be added? |
|
asked by Ashutosh Dash (ashutosh_dash) 6 years ago |
2 |
if comments are not written, are marks deducted? |
|
asked by Ashutosh Dash (ashutosh_dash) 6 years ago |
1 |
Is ICSE concerned only with the output, or does it even check the logic? If the number of iterations is more than required while the output remains the same, would marks be allocated?? |
|
asked by Ashutosh Dash (ashutosh_dash) 6 years ago |
2 |
anyone who can upload physical education specimen paper 2018... |
|
asked by Ayaan Mansuri (crq7) 6 years ago |
2 |
can we use recursion? |
|
asked by Hatake Kakashi (jatintara) 6 years ago |
3 |
Do we need to write comments and variable description in class programs (where the variables are already described in the question)? Pls tell. |
|
asked by Gargie D'souza (gar_d02) 6 years ago |
2 |
Difference between dynamic and static binding ? |
|
asked by Akshay (akshay0072001) 6 years ago |
1 |
differene between error and exception |
|
asked by Rtstud (mdarfath) 6 years ago |
1 | + 1 more questions by mdarfath
GUYS instead of writing
int n = 12;
String n1 = Integer.toString(n);
we can directly write
String n1 = ""+n;
no need to write Integer.toString(n); |
|
asked by Rtstud (mdarfath) 6 years ago |
3 |
|
can sum1 tell me the bytes occupied by all data types |
|
asked by Mugdha Walawalkar (mugdhahemant) 6 years ago |
5 |
This thing is absolutely bugging me why the hell r the respaper admins spamming my notifications
Is it like i broke some rules or something
Or did I like swear or lot
I dont even knw ?? |
|
asked by Kris Shibu (zeusinmars) 6 years ago |
5 |
|