Skip to content

anuj-das-10/Programming-in-JAVA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

✅ Programming in JAVA

Programming-in-JAVA

🤔Not familiar with GitHub Interface?



📜Practical Questions

Q1)   Write a JAVA program to find the sum of any number of integers entered as command line arguments.

Q2)   Write a JAVA program to find the Factorial of a given number:

(i) Using Iteration

(ii) Using Recursion

Q3)   Write a JAVA program to display Fibanocci Series:

(i) Using Iteration

(ii) Using Recursion

Q4)   Write a JAVA program to convert a given Decimal number to its equivalent Binary number.

Q5)   Write a JAVA program to convert a given Binary number/string to its equivalent Decimal number.

Q6)   Write a JAVA program to convert a given Binary number to its equivalent Hexadecimal value.

Q7)   Write a JAVA program to check whether the given number is prime or not.

Q8)   Write a JAVA program to find the position of a number in a given Array.

Q9)   Write a JAVA program to sort a given Array in Ascending Order and Descending Order.

Q10)   Write a JAVA program to search a number in a given List (Using ArrayList from Collection Framework).

Q11)   Write a JAVA program to sort a given List of numbers in Ascending Order and Descending Order (Using ArrayList from Collection Framework).

Q12)   Write a JAVA program to show working of different methods of String class:

  • PART-1
trim(); 
length();  
concat();  
charAt();  
equals();  
indexOf();  
valueOf();
endsWith();  
contains();  
toUpperCase(); 
lastIndexOf();
replace(); 
substring();  
startsWith();  
toLowerCase();  
equalsIgnoreCase(); 

Q13)   Write a JAVA program to show working of different methods of StringBuffer class:

append();   
insert();
delete();
replace();
reverse();  
capacity();

Q14)   Write a JAVA program to create a class Distance which consists of two coordinates as data members and a constructor which initializes the values of coordinates and a method which calculates the distance between two coordinates.

Q15)   Write a JAVA program to implement the concept of Method Overloading (Compile Time Polymorphism).

Q16)   Write a JAVA program to implement the concept of Method Overriding (Run Time Polymorphism).

Q17)   Write a JAVA program to show the uses of static data members and static methods.

Q18)   Write a JAVA program to demonstrate the concept of boxing and unboxing.

Q19)   Write a JAVA program to implement the concept of Single-Level Inheritance.

Q20)   Write a JAVA program to implement the concept of Multi-Level Inheritance.

Q21)   Write a JAVA program to implement the concept of Hierarchical Inheritance.

Q22)   Write a JAVA program to create your own package and use it in your program.

Q23)   Write a JAVA program to implement the concept of Interface.

Q24)   Write a JAVA program to implement the concept of Multiple Interfaces.

Q25)   Write a JAVA program to implement the concept of exception handling mechanism.

Q26)   Write a JAVA program to handle multiple exceptions.

Q27)   Write a JAVA program to create your own exception and use it in the program.

Q28)   Write a JAVA program to read the contents of a File.

Q29)   Write a JAVA program to write the contents to a File.

Q30)   Write a JAVA program to count the number of Characters, Words and Lines in a File.

Q31)   Write a JAVA program to copy the contents of one File into another File.

Q32)   Write a program design a Simple Calculator using JAVA SWING.

Q33)   Write a program to display the coordinates of mouse, when it clicked in the GUI Window using JAVA SWING.

Q34)   Write a JAVA program to implement the concept of multi-threading by extending Thread class.

Q35)   Write a JAVA program to implement the concept of multi-threading by implementing the Runnable interface.





🤖Join Community!

- Stuck at any question?
- Confusions regarding any solution provided?
- Want to discuss something regarding above topics?
- Want to connect with other students?

  • join JOIN HERE !!

     discord



🔁Connect With Me!



Give this Repository a STAR⭐

(If you find this repository helpful)
Thank You!!💞

Made with 💖 by Anuj Das