PROGRAMMER

JAVA

Q. 1] Create an abstract class shape. Derive three classes Sphere cone and cylinder from it. Calculate the area and volume of all (use method overloading)

Slip 1

Slip 2

Slip 3

           b. 31  6    1990
           c. 29  2    2015

Slip 4


Slip 5

Slip 6



Slip 7

Slip 8

Slip 9

Slip 10

Slip 11

         a) If it is a directory, list the names of text file. Also, display a count showing the number of files in the directory.
         b) If it is a file display various details of that file.

       b) Second thread prints “I am in SY” 20 times 
       c)Third thread prints “I am in TY” 30 time

Slip 12

Slip 13

      a) If it is a directory, delete all text file in that directory. Confirm delete operation from user before deleting text file. Also, display a count showing the number of files deleted, if any , rom the directory.
      b) If it is a file display various details of that file

Slip 14

       b) Add new name-phone number pair.
       ii. Display the contents of the List in reverse order using a ListIterator 
      iii. Create another list containing pink and green. Insert the elements of this list between blue and yellow.

Slip 15

Slip 16

       b) Remove a city from the collection 
       c) Search for a city name and display the code.


Slip 17

Slip 18


Slip 19

Slip 20


Slip 21


Slip 22

         Input     :  User Name ABC
        Output   :  Good Morning ABC/Good Afternoon ABC/ Good Evening ABC

Slip 23

          a) useCard() method increase the creditAmount by a specific amount upto creaditLimit. 
          b) payCreadit() reduces the creditAmount by a specific amount. 
          c) increaseLimit() increases the creaditLimit for GoldCardCustomers (only 3 times, not more than 5000 rupees each time.)
         a) out: To display current Date and Time
         b) request: To get header information 
         c) response: To Add cookie 
         d) config: get the parameters value defined in <init-param> 
         e) application: get the parameter value defined in <context-param>

Slip 24

Slip 25

No comments:

Post a Comment