CORE JAVA PROGRAMMING - Topics

CORE JAVA PROGRAMMING - Practice Problems

CORE JAVA PROGRAMMING - Practice Problems

1. Create a Java program to access the java.util.Date class through import keyword and print the current date of the system.

Tutorial

2. Create a Java program to access the java.util.Date class through qualified way and print the current date of the system.

Tutorial

3. Create a Java program to access the java.util.Date class through import keyword and print the current date of the system but inherit the Date class.

Tutorial

4. Create a Java program to access the java.util.Date class through qualified way and print the current date of the system but inherit the Date class.

Tutorial

5. Create a Java program to create a package with multiple default classes.

Tutorial

6. Create a Java program to create a package with 4 public classes, create the object in another file and call the function created in those classes.

Tutorial

7. Write a Java program to perform employee payroll processing using packages. In the java file, Emp.java creates a package employee and creates a class Emp. Declare the variables name,empid, category, bpay, hra, da, npay, pf, grosspay, incometax, and allowance. Calculate the values in methods. Create another java file Emppay.java. Create an object e to call the methods to perform and print values.

Tutorial

8. Create a Java program to create a package with public class and protected members to be accessed in another class.

Tutorial

9. Create a Java program to create a nested package i.e. c4.sample with public class and protected members to be accessed in another class.

Tutorial

10. Create a Java program to create a package with public class and public members to be accessed in another class.

Tutorial

Expand Your Horizons with Our Free YouTube Courses

Our comprehensive YouTube courses cover a wide range of computer science and IT subjects. Each course is carefully crafted to provide you with a solid foundation and a deeper understanding of the topic. Explore our playlist of free courses and learn at your own pace. Stay ahead of the curve and boost your knowledge with our engaging video lectures.

Java Course

Learn Now

Data Structures Course

Learn Now

DBMS Course

Learn Now