13 solutions available
Question 1What is a java package? Give an example.
Question 2Explain the use of import statement with an example.
Question 3Explain the statement, "a well-documented code is as important as the correctly working code".
Question 4How can you write single line comments in Java?
Question 5Explain data input technique in a program using the Scanner class.
Question 6Distinguish between the following:i. next() and nextLine()
Question 7What are delimiters? Which is the default delimiter used in the Scanner class?
Question 8What are errors in a program?
Question 9Explain the following terms, giving an example of each.i. Syntax error
Question 10A program has compiled successfully without any errors. Does this mean the program is error free? Explain.
Question 11Write a program in Java that uses 'input using initialisation' to calculate the Simple Interest and the Total Amount with the given...
Question 12Write a program in Java that accepts the seconds as input and converts them into the corresponding number of hours, minutes and seconds. A...
Question 13Write a program in java to input the temperature in Fahrenheit, convert it into Celsius and display the value in the Terminal window. A...