Welcome to the ultimate guide for the VTU Java Lab based on the BPLCK105C/205C syllabus!
This video is tailored to help VTU students master key Java programming concepts and excel in their lab examinations.
All programs are available at https://github.com/teamkaliyona/vtu-java-lab
💡 What You’ll Learn:
Build and execute Java programs effectively
Develop a solid understanding of object-oriented programming
Prepare confidently for your
VTU Java lab exams
1. Write a JAVA program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a, b, c and use the quadratic formula.
2. Write a JAVA program for multiplication of two arrays
3. Demonstrate the following operations and sign extension with Java programs
4. Write a JAVA program to sort list of elements in ascending and descending order.
5. Create a JAVA class called Student with the following details as variables within it. USN, NAME, BRANCH, PHONE, PERCENTAGE Write a JAVA program to create n Student objects and print the USN, Name, Branch, Phone, and percentage of these objects with suitable headings.
6. Write a JAVA program demonstrating Method overloading and Constructor overloading.
7. Design a super class called Staff with details as StaffId, Name, Phone, Salary. Extend this class by writing three subclasses namely Teaching (domain, publications), Technical (skills), and Contract (period). Write a JAVA program to read and display at least 3 staff objects of all three categories.
8. Demonstrate dynamic dispatch using abstract class in JAVA.
9. Create two packages P1 and P2. In package P1, create class A, class B inherited from A, class C. In package P2, create class D inherited from class A in package P1 and class E. Demonstrate working of access modifiers (private, public, protected, default) in all these classes using JAVA
10. Write a JAVA program to read two integers a and b. Compute a/b and print, when b is not zero. Raise an exception when b is equal to zero. Also demonstrate working of ArrayIndexOutOfBoundException.
💻 Follow Along: Make sure to practice every program as we code together. Pause, rewind, and code along to learn effectively!