Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

java test

Ads

 
 

Share on Google+Share on Google+

steviedoyle
java test
0 Answer(s)      6 years and 11 months ago
Posted in : Java Beginners
Trace through the following program segment and state clearly the output that will be generated:

public static void main(String [] args){
int no1;
int no2;
for (no1 = -2; no1 <= 1; no1++){
for (no2 = 0; no2 < 6; no2 = no2 + 3){
System.out.println(no1 + ? ?+ no2);
}
}
}

This is a question from a past paper and below are the answers, but, i am still unawre on how to work out the question. How do you do it?


-2 0
-2 3
-1 0
-1 3
0 0
0 3
1 0
1 3
Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
java test
java test  How to read the data from an .csv file and write into an xml file using java? (test_sample.csv(it should contain at least 39 lines)) i...:\\Documents and Settings/janardhany/Desktop/test_sample.txt
how to conduct the test in java
how to conduct the test in java  how to conduct the test in java
Advertisements
java test - Java Beginners
java test   Trace through the following program segment and state clearly the output that will be generated: public static void main(String [] args){ int no1; int no2; for (no1 = -2; no1 <= 1; no1++){ for (no2
Create test engine - Java Beginners
Create test engine  How can create a test engine dat generates questions randomly using javax.swing in java
online test application in java
Online Test Application Table Of Contents Introduction To Application Database Design Creating Data Access Object (DAO) Design Pattern Creating Views Writing Actions Mapping Application Admin Module User Module Download
online test application in java
online test application in java  Can questions come in html file (test.html) if we link test.jsp with test.html   We have taken radiobuttons in our application, you can take textarea, textfield etc. Here we have created
Java File Handling Test Results
Java File Handling Test Results   Is somebody able to help me with this Write a program to read each name from the file and prompt the user... java.io.*; public class Test { public static void main(String[] args) throws
junit test case - Java Beginners
junit test case  how to use junit for testing email id format  Hi Friend, Please visit the following link: http://www.roseindia.net/junit/ Hope that it will be helpful for you. Thanks
Version of com.amazonaws>aws-java-sdk-test-utils dependency
List of Version of com.amazonaws>aws-java-sdk-test-utils dependency
code for timer in java netbeans for online test series countdown timer
code for timer in java netbeans for online test series countdown timer  code for timer in java netbeans for online test series countdown timer
online test project on java using servlets and jsp
online test project on java using servlets and jsp  as i am doing online test project on java using jsp and servlets ,,,the problem is in the code...;Here is a jsp application. Here we have created a table test
How to bookmark and preview last question in a java test engine - Java Beginners
How to bookmark and preview last question in a java test engine  Am creating a test engine with java, how can i generate questions randomly, allow a user bookmark a question view previous question and review questions
How to bookmark and preview last question in a java test engine - Java Beginners
How to bookmark and preview last question in a java test engine  Am creating a test engine with java, how can i generate questions randomly, allow a user bookmark a question view previous question and review questions
test case
test case  Hi Can you explain me how to write test case in java. regards kennedy
Maven Dependency aws-java-sdk-test-utils >> 1.10.10
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.10 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.11
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.11 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.12
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.12 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.13
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.13 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.14
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.14 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.15
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.15 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.16
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.16 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.17
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.17 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.18
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.18 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.19
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.19 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.20
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.20 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.6
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.6 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.7
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.7 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.8
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.8 in your project
Maven Dependency aws-java-sdk-test-utils >> 1.10.9
You should include the dependency code given in this page to add Maven Dependency of com.amazonaws >> aws-java-sdk-test-utils version1.10.9 in your project
WRITE AND TEST
WRITE AND TEST   WRITE AND TEST PROGRAM TO ACCEPT A STRING? 1).WHICH STARTS WITH 'S' OR 's' 2).ENDS WITH "nd" 3) THE LENGTH OF THE STRING SHOULD BE 10 OR LESS
Online test
Online test   I am creating a project for online test system. There should be a timer,on pressing next button it will retrieve a next question and it will show on the same page,on completion of test it will show result