[go: up one dir, main page]

0% found this document useful (0 votes)
32 views3 pages

Record Programs List

Uploaded by

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

Record Programs List

Uploaded by

jackma1998.in
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.Write a Java Program to display the Maximum and Minimum of three numbers.

2.Write a Java Program to find out the Factorial of a number.


3.Write a Java Program to find the first ten numbers in Fibonacci Series.
4.Write a Java Program to check whether a number is an Armstrong or not.
5.Write a Java Program to check whether a number is prime or not.
6.Write a java program to display prime numbers with in the given range of numbers.
7.Write a Java program to check whether a number is a Palindrome or not.
8.Write a java program to identify whether a number is a Perfect number or not.
9.Write a Program to search for an element in an Array using Linear Search.
10.Write a Java Program to search for an element in an Array using Binary Search.
11.Write a java program to sort an Array of elements using Bubble sort.
12.Write a Java Program for Matrix Addition.
13.Write a Java Program for Matrix Multiplication.
14.Write a Java program to compute addition and multiplication of any two complex
numbers.
15.Write a Java program to find the Greatest Common Divisors of any two numbers.
16.Write a Java program to compute the sum of the digits of a given number.
17.Write a java program to display the default values of all primitive data types.
18.Write a Java program to find out Roots of a Quadratic equation.

19.Write a Java Program to find the sum of first 'n' natural numbers using for-each
loop.

Scanner sc=new Scanner(System.in);


int n,sum=0;
n=sc.nextInt();
int a[] =new int[n];
for(int i=0;i<n;i++)
a[i]=i+1;
for(int x:a)
sum+=x;
System.out.println("The sum of first "+n + " naturals is"+ sum);

20. Write a Java program to check whether the one dimensional array has duplicate
elements or not
21. Write a Java program to print duplicate elements of one dimensional array
22. Write a Java program to insert an element into specified position of the given
array
23. Write a Java program to delete an element from the specified position of the
given array
24. Write a Java program to display the student details using setter and getter
methods of Student class.
25. Write a Java program to compute the volume of a Cube using method return type
and formal parameters.
26. Write a Java program to demostrate default costructor using Box class and
compute volume of it
27. Write a Java program to demostrate parameterized costructor using Box class and
compute volume of it (Note: Read data dynamically from the user)
28. Write a Java program to demostrate constructor overloading
29. Write a Java program to perform Stack operations using arrays
30. Write a Java program to demonstrate copy constructor
31. Write a Java program to demonstrate Single Inheritance using Box and Cube
Class.
32. Write a Java program to demostrate Multilevel Inheritance using Box, Cube and
Cuboid class
33. Write a Java program to demostrate Hierachical Inheritance using different
shape class
34. Write a Java program to demstrate Method Overloading
35.Write a Java program to demstrate Method Overriding
36. Write a Java program to demostrate Dynamic Method Dispatch
37. Write a Java program to demstrate Abstract Class
38. Write a Java program to demonstrate final at variable level
39. Write a Java program to demonstrate final at method level
40. Write a Java program to demonstrate final at class level
41. Write a Java program to demonstrate Interface
42. Write a Java program to implment multiple inheritance using Interfaces
43. Write a Java program to demonstrate Functional Interface
44. Write a Java program to demonstrate default and static methods in an Interface
45. Write a Java program to demostrate nested or inner class
46. Write a Java program to demostrate Method Level Inner Class
47. Write a Java program to demonstrate anonymous concrete class
48. Write a Java program to demonstrate Anonymous inner class with interface
implementation
49. Write a Java program to demonstrate Static Nested Classes
50. Write a Java program to check whether the given array is mountain array or not.

51. Write a Java program to handle artithmetic exception and number format
exception
52. Write a Java program to handle arrray index out of bounds exception
53. Write a Java program to create and handle user defined exception
54. Write a Java program which extends Thread class to implement multithreading in
java
55. Write a Java program to implement multithreading in java using Runnable
interface
56. Write a Java program to create even and odd threads by extending Thread class
57. Write a Java program for Non Synchronized withdraw operation from the shared
bank account
58. Write a Java program for Synchronized withdraw operation from the shared bank
account
59. Write a Java program for Synchronized block withdraw operation from the shared
bank account
60. Write a Java program for Interthread-Communication using Producer Consumer
Problem
61. Write a Java program for Interthread-Communication to print Natural Numbers
using Even and Threads
62. Write a Java program to perform various String operations
63. Write a Java program to work with StringBuffer and its operations
64. Write a Java program to work with StringBuilder and its operations
65. Write a Java program to create an Enumeration and assign values using
constructor
66. WJP to create a custom annotation or user defined annotation
67. Write a Java program to create file object and get its properties using file
object
68. Write a Java Program to display list of file names with specified extension
using FilenameFilter
69. Write a Java Program illustrating the Byte Stream to copy contents of one file
to another file.
70. Write a Java Program illustrating the Character Stream to copy contents of one
file to another file.
71. Write a Java program to read the file content and display using
BufferedInputStream
72. Write a Java program to write the content onto file using BufferedOutputStream
73. Write a Java program to read and write from file using BufferedReader and
BufferedWriter
74. Write a Java program to demonstrate serialiazation and deserialization

#######################################################
24 Programs to be extra in Observation
#######################################################

Day 1: 6
greatest of 2 nos using if: 1
Switch case with string : 1
Student class: 1
Student Constructor 1
Student ConstrOverload 1
Arrays: second largest &other 1: 2
Recursion: 2(factorial and GCD)
array duplicate count: 1
Student -Person Inheritance: 1
Student Parameterized Constructor & Overloading: 1
Copy Constructor: 1
Absstract Class: 1 out 2
Thread Prority 1
Annotations: 3

You might also like