1 - 2. What is the printed as a result of the following...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
1. Answer the following questions about the Java Programming language in your own words. Each answer should be 1 paragraph long. Your answers must be printed (not handwritten). All your answers together must fit on one side of one sheet of paper. A. In Java, what is a class? What is an object? What is the difference? A class is B. What is a Java method? Where are methods defined?
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2. What is the printed as a result of the following Java statements? int i = 2, j = 3, k = 4; System.out.println (i + j / k); System.out.println ((i + j) / k); System.out.println (i + j % k); System.out.println ((i + j) % k); 3. Read the rest of the Lab 2 instructions so that you will know what you need to do during the lab session....
View Full Document

This note was uploaded on 10/28/2010 for the course ECON 33 taught by Professor Def during the Spring '10 term at University of Cape Coast,Ghana.

Ask a homework question - tutors are online