Blog about Programming Languages & Coding

Blog about Programming Languages & Coding
Contents for Computer Science, IT, B.Sc. CS & IT, M.Sc. CS & IT, MCA, BE CS & IT, ME CS & IT , Interview Questions, Books and Online Course Recommendations from Udemy, Coursera, etc

Core Java Programming Questions

Core Java Programming Questions


1.   WAP program to calculate Simple Interest.

2.   WAP program to find Largest of Three Numbers.

3.   Write a program to accept the initial letter of the name & to display the friends name by using switch statement.

4.   Write a program to display a greet message according to Marks obtained by student.

5.   Write a program to display the following output.  (Note : PF=0.15*basic sal DA=0.10*basic sal)

Enter your name: Smith

Enter the basic salary: 45000

 

Emp Name : Smitha

-------------------------------

Basic Sal    : 45000

PF               : 6750

DA              : 18000

-------------------------------

Net Sal        : 56250

 

6.   WAP to check entered year is leap year or not.

7.   WAP program to print Factorial of a number.

8.   Write a program to Find whether number is Prime or Not.

9.   Program to display first n prime numbers.  Accept n from user.

10.WAP program to create Mini Calculator.

11.WAP program for Fibonacci Series.

12.Write a Java program to convert a decimal number to octal number.

13.Write a Java program to convert a binary number to hexadecimal number.

14.WAP program to transpose a Matrix.

15.WAP program to add Two Matrices.

16.Write a Java program to sum values of an array. 

17.Write a Java program to sort (ascending and descending) a numeric array.

18.Write a Java program to find the largest element in an array.

19.Write a program to convert given no. of days into months and days.(Assume that each month is of 30 days)

20.Write a program to find whether given no. is Armstrong or not.

21.Write a program to create a class Employee. Accept the employee information such as empid, name and designation using methods. Display the accepted information using methods.

22.Write a program to accept student information such as roll number, name and marks in physics, chemistry and maths using class. And to display that information along with the result as ‘ You are eligible’ if marks in all subjects > 60 otherwise display ‘You are not eligible’.

23.Write a program to appoint a driver by checking following conditions:

i)             Person having their driving license.

ii)           If the person is male then his age should be between 25 to 50

iii)          If the person is female then her age should be between 30 to 50

24.Write a program to design a class Addition for adding two numbers. Use the concept of constructor. (default and parameterized constructor)

Core Java Programming Questions Core Java Programming Questions Reviewed by Asst. Prof. Sunita Rai, Computer Sci.. Dept., G.N. Khalsa College, Mumbai on January 12, 2022 Rating: 5

No comments:

Powered by Blogger.