Professional Documents
Culture Documents
01 PE Basics of Java
01 PE Basics of Java
Question 1) Create classes named Car and CarTest with following specifications given below in class diagrams
CarTest.java
The main method of class CarTest should create an instance of class Car and then should call both setter methods with any appropriate user-specified arguments. Using the instance specified earlier the main method should also call both the getter methods to display the result on standard output.
Question 2) Create a class named Test containing main method which displays on standard output two strings Hello and World on single line separated by space, using System.out.print method. Test class should be present inside package org.testing