0% found this document useful (0 votes)
11 views2 pages

Java Program to Display Vowels in String

The document contains a list of practical Java programming questions for TY BBA (Computer Application) students. It includes tasks such as displaying vowels from a string, checking for Armstrong numbers, calculating averages for cricket players, and creating various GUI applications. The questions cover a range of topics including recursion, file handling, and object-oriented programming concepts.

Uploaded by

p9280840
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Java Program to Display Vowels in String

The document contains a list of practical Java programming questions for TY BBA (Computer Application) students. It includes tasks such as displaying vowels from a string, checking for Armstrong numbers, calculating averages for cricket players, and creating various GUI applications. The questions cover a range of topics including recursion, file handling, and object-oriented programming concepts.

Uploaded by

p9280840
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

TY BBA (Computer Application ) Core Java:

Practical questions

1) Write a java program to display all the vowels from a given string.

2) Write a ‘java’ program to check whether given number is Armstrong or not.


(Use static keyword)

3) Write a java program to display alternate character from a given string.

4) Write a java program to display following pattern:


5
45
345
2345
12345

5) Write a java program to display transpose of a given matrix.

6) Write a java program to accept details of ‘n’ cricket player (pid, pname, totalRuns,
InningsPlayed, NotOuttimes). Calculate the average of all the players. Display the
details of player having maximum average. (Use Array of Object) .

7) Define an Interface Shape with abstract method area(). Write a java program to
calculate an area of Circle and Sphere.(use final keyword)

8) Write a java program to count the frequency of each character in a given string.

9) Writea menu driven java program using command line arguments for the
following:

1. Addition
2. Subtraction
3. Multiplication
4. Division.

10) Write a java program to display each String in reverse order from a String array.

11) Write a Java program to calculate power of a number using recursion.

12) Write a Java program to calculate factorial of a number using recursion.

13) Write a Java program to display Fibonacci series using function.

14) Write a java program to check whether given string is palindrome or not.

15) Write a java program to display ASCII values of the characters from a file.
TY BBA (Computer Application ) Core Java:
Practical questions

16)B) Write a java program to accept directory name in TextField and display list of
files
and subdirectories in List Control from that directory by clicking on Button.
17)B) Write a java Program to accept the details of 5 employees (Eno, Ename, Salary)
and
display it onto the JTable.
18) Write a java program using Applet for bouncing ball. Ball should change its color
for each bounce.
19) Write a java program to design a following GUI (Use Swing).

20)B) Write a ‘java’ program to copy only non-numeric data from one file to another
file.
21)Design a screen in Java to handle the Mouse Events such as MOUSE_MOVED
and MOUSE_CLICK and display the position of the Mouse_Click in a TextField

22)Define an abstract class Shape with abstract methods area () and volume (). Derive
abstract class Shape into two classes Cone and Cylinder. Write a java Program
to calculate area and volume of Cone and Cylinder.(Use Super Keyword.)

23) Write a java program to display transpose of a given matrix.

24) Write a java program to display the files having extension .txt from a given
directory.
25)) Write a java program to validate PAN number and Mobile Number. If it is
invalid then throw user defined Exception “Invalid Data”, otherwise display it.

You might also like