Core Java Assignment
Core Java Assignment
1.create a package mypack which contains the class Balance that has data member name and bal,a constructor and a method show().mypack contains other class AcctBalance whose main method instantiate the Balance class. 2.write a program for use of all kind of members(default,public,private, protected)of a class inside the subclass in the different package and non subclass in different package. 3.write a program for use of all access modifiers default,public,private, protected in same package,subclass in the same package,different class in same package. 4.create a package packCal in which main class Calculater and you create 4 different class,add,Multi, sub,Div in packAdd,packMulti,packSub,packDiv.These classes can be accessed through Calculator 5.To create package which has two methods a) To reverse the given string (b) to give the number of alphabets in a string. 6.write a program which has 2 int a,b and perform bitwise operations |,&,~,^ and shift operations <<,>>,>>> on it. 7.W.A.P. to print the marksheet of the student in the following manner Marksheet -----------------------------------Name : Rahul Jain Roll No : 0205ca071101 College : IIIT Allahabad College -----------------------------------Subject : Marks
-------------------------------------