Professional Documents
Culture Documents
Unit 1 QB OOPS
Unit 1 QB OOPS
Class CheckNumber( )
Int x= 77;
If (x/2==1){
else {
System.out.println(“is ODD”); }
}
}
14. Write a Java Program to call the method print() of class Student first and then call
print() method of class College.
15 . Develop a simple Java Program to call the constructor cons() of class program to print
the following
[ Hi ! I am studying,
My native is Mysuru]