Java Blog

 public class JAVA_066

    public static void main(String[] args)
       Sphere obj=new Sphere( ); // class file included in zip 

       System.out.println(\"The radius of sphere object is : \"
                                                       + obj.getRadius( ));

       System.out.println(\"The volume of sphere object is : \"
                                                       + obj.getVolume( ));


    Related Post:
  1. Program for Thread Priority

  2. Program of linear search

  3. Program to show an example of modifying String objects

  4. Program to print some text on the same line using multiple print statements

  5. Program to show an example of searching Strings for subStrings

  6. Program to change characters in a StringBuffer objects and to reverse its contents

  7. Program which simulate the dictionary in java

  8. Program to display following things on the client machine a)date and time of the server machine b)date and time of the client machine and difference

  9. Program to declare, initialize and print a 2D array of integers

  10. Program of reading and writing primitive data

  11. Program to show an example of creating String objects from Character Arrays

  12. Program using session tracking capability of Servlets, which displays information of current user session by HttpServletRequest object

  13. Program of an applet to display alternate filled and empty circle

  14. Program to show an example of using Abstract Class and Abstract Method

  15. Corba program to encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time.

  16. Program that accepts a shopping list of five items from the command line and stores them in vector

  17. Program which calls the method sort(int []a) which throws the Exception ArithmeticException, NullPointerException, ArrayIndexOutOfBoundsException

  18. An applet program that displays Text at the center of the string which is passed as parameter

  19. Program to show the use of Bitwise Operator (|) OR

  20. An applet program to display Vertical Color Bar