How are commas used in the initialization and iteration
parts of a for statement?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
for(int a=1,b=1;a<15&&b<20;i++,j++)
Is This Answer Correct ? | 3 Yes | 0 No |
Commas are used to separate the initialization and
iteration parts in the for statement.
Is This Answer Correct ? | 2 Yes | 1 No |
What are the important methods of java exception class?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
what is Inheritense
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
Explain about features of local inner class?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is public/private protected in java?
What is the use of private static?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
how we can create packages in java?
Difference between the paint() and repaint() methods?
What is the benefit of inner classes in java?