TYBSC COMPUTER SCIENCE java practical slips solution
1) Create a class Sphere, to calculate the volume and surface area of sphere.
(Hint : Surface area=4*3.14(r*r), Volume=(4/3)3.14(r*r*r))
class surfaceareaandvolume {
public static void main(String args)
{
double r =…