java_home


JAVA Practicals list:

Serial No. Sub-Pactical No. Aim of the Pactical
11Write a program to display “Welcome To Java World”.
2Write a program to find whether the number is prime or not.
3Write a program to print the Fibonacci series.
21Write a Java Program that displays all the Java Features using Command line Argument.
2Write a program to find the average of n numbers stored in an Array.
3Write a Java Program to sort City Names in Ascending Order using Command LineArgument.
31Write a Java Program to find Factorial of a Given Number using Command LineArgument.
2Describe abstract class called Shape which has three subclasses say Triangle, Rectangle,Circle. Define one method area() in the abstract class and override this area() in thesethree subclasses to calculate for specific object i.e. area() of Triangle subclass shouldcalculate area of triangle etc. Same for Rectangle and Circle.
3It is required to compute SPI (semester performance index) of n students of your collegefor their registered subjects in a semester. Declare a class called student having followingdata members: id_no , no_of_subjects_registered, subject_code , subject_credits,grade_obtained and spi.- Define constructor and calculate_spi methods.- Define main to instantiate an array for objects of class student to process data of nstudents to be given as command line arguments.
41Write a program that illustrates interface inheritance. Interface P is extended by P1And P2. Interface P12 inherits from both P1 and P2.Each interface declares oneconstant and one method. Class Q implements P12.Instantiate Q and invokes each of itsmethods. Each method displays one of the constants.
51Write a program which defines base class Employee having three data members, namelyname[30], emp_numb and gender and two methods namely input_data() and show_data().Derive a class SalariedEmployee from Employee and adds a new data member, namelysalary. It also adds two member methods, namely allowance (if gender is female HRA=0.1*salary else 0.09* salary. DA= 0.05*salary) and increment (salary= salary+0.1*salary).Display the gross salary in main class. (Tip: Use super to call base class’s constructor0).
2WAP that illustrates method overriding. Class A3 is extended by Class B3. Each of theseclasses defines a hello(string s) method that outputs the string “A3: Hello From” or “B3:Hello From” respectively. Use the concept Dynamic Method Dispatch and keyword super.
61Write an abstract class shape, which defines abstract method area. Derive class circlefrom shape. It has data member radius and implementation for area function. Derive classTriangle from shape. It has data members height, base and implementation for areafunction. Derive class Square from shape. It has data member side and implementation forarea function. In main class, use dynamic method dispatch in order to call correct versionof method.
2Create an interface Shape2D which declares a getArea() method. Point 3D containscoordinates of a point. The abstract class Shape declares abstract display() method and isextended by Circle class. it implements the Shape2D interface. The Shapes classinstantiates this class and exercises its methods.
3Create a package “employee” and define a Class Employee having three data members,name, emp_num, and gender and two methods- input_data and show_data. Inherit classSalariedEmployee from this class and keep it in package “employee”. Add new variablesalary and methods allowance (if female hra=0.1* salary else 0.09* salary. DA=0.05*salary) and increment (salary= salary+0.01 * salary). Calculate gross salary in mainclass defined in the same package.
71WAP using try catch block. User should enter two command line arguments. If only oneargument is entered then exception should be caught. In case of two command linearguments, if fist is divided by second and if second command line argument is 0 thencatch the appropriate exception.
2Define an exception called “NoMatchException” that is thrown when a string is notequal to “India”. Write a program that uses this exception.
81The program to creates and run the following three threads. The first thread prints theletter ‘a’ 100 times.The second thread prints the letter ‘b’ 100 times.The third thread prints the integer 1 to 100.
2Write the thread program -1using Runnable interface.
3Write a program that client sends the data as redius of circle to server and server recived that data and send the resultant area of circle to requested client.
91Write a program that takes two files names (source and destination) as command lineargument .Copy source file’s content to destination file. Use character stream class. Alsodo same using byte stream and buffer stream.
2Write a program which generates random integers and stores them in a file named“rand.dat”. The program then reads the integers from the file and displays on the screen.
101Write a program which generates random integers and stores them in a file named“rand.dat”. The program then reads the integers from the file and displays on the screen.

29 comments:

  1. Replies
    1. Nice way of expressing your ideas with us.thanks for sharing with us and please add more information's.

      Big Data Projects For Final Year

      Machine Learning Projects for Final Year

      Delete

  2. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.
    Machine Learning Training in Chennai |Machine Learning Training Institute in Chennai

    ReplyDelete
  3. Hi this is nice post. Thanks for sharing
    Sap FICO Training Online . Taking up a SAP FICO certification is the initial move towards starting a profession as a SAP FICO adviser.

    ReplyDelete
  4. Great post very useful info thanks for this post ....
    Visit us: Core Java Online Course
    Visit us: Best Online Java Course

    ReplyDelete
  5. Great Post! Thanks for sharing. Keep sharing such information.

    python training

    ReplyDelete
  6. Thank you for sharing useful information with us. please keep sharing like this. And if you are searching a unique and Top University in India, Colleges discovery platform, which connects students or working professionals with Universities/colleges, at the same time offering information about colleges, courses, entrance exam details, admission notifications, scholarships, and all related topics. Please visit below links:

    Manav Rachna International Institute of Research and Studies Faridabad

    NIMS University Jaipur

    Nirma University Ahmedabad

    PES University Bangalore

    Rabindranath Tagore University Bhopal

    ReplyDelete
  7. Great Post! Thanks for sharing. Keep sharing such information.
    Java Training

    ReplyDelete
  8. Nice Blog. Thanks for sharing this article with us. Keep sharing in future.
    Do you want to be a JAVA Course?

    JAVA Course

    ReplyDelete
  9. Digital Marketing refers to the use of digital channels to market products and services in order to reach consumers. This type of marketing involves the use of websites, mobile devices, social media, search engines, and other similar channels. Softcrayons is one the best digital marketing training institutes if looking to learn these courses

    ReplyDelete
  10. IGCP provides best sas training in hyderabad IGCP also offers Best Clinical SAS Training in Hyderabad with various courses

    ReplyDelete
  11. IGPC is the leading clinical SAS training institute in Hyderabad that provides online clinical training as well as a classroom learning experience of learning clinical SAS.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. APTRON Solution's Data Science Training in Noida is your gateway to a successful career in the exciting field of data science. With a comprehensive curriculum, hands-on experience, expert guidance, top-notch infrastructure, placement support, and flexible learning options, we are committed to helping you achieve your data science aspirations. Join us today and unlock your data science potential with APTRON Solution in Noida. Your future in data science begins here.

    ReplyDelete
  14. It is important for clinical SAS training in Hyderabad from IGCP who want to make their career in data analysis.

    ReplyDelete
  15. nice information thank for sharing and please follow my page
    mulesoft training
    pega training

    ReplyDelete
  16. thanks for sharing information on Java Programminghttps://medium.com/@shikhacomputersofttech/java-programming-vataliya-computer-classes-in-vdodara-gujarat-

    ReplyDelete
  17. Its Very Use Full Information , For More Information Search Java Full Stack Online Training , Thanking You

    ReplyDelete