The document discusses various Java Collection topics like Collection framework, Arraylist, LinkedList, HashSet, HashMap, Iterator etc. It includes questions on storing student data using different collections, finding presence of elements, counting mappings in a map, deleting duplicate elements from Arraylist, generating inventory alerts etc.
The document discusses various Java Collection topics like Collection framework, Arraylist, LinkedList, HashSet, HashMap, Iterator etc. It includes questions on storing student data using different collections, finding presence of elements, counting mappings in a map, deleting duplicate elements from Arraylist, generating inventory alerts etc.
2. Evaluate Array and Array list with respect to their performance. Write a Java program of Arraylist and use 5 built in methods of Arraylist
3. What is the use of Iterator in Java Collection? Explain with a program
4. Write a java program to create a collection to store data such as Name, Mobile No. , marks and gender of 10 students. 5. Write a java program to find the presence of element in a HashSet/ Linkedlist/ HashMap. 6. Write a Java program to count the number of key-value (size) mappings in a map. Also check the presence of key 7 in the map. 7. Explain Collection framework in Java. How linkedlist , HashSet and HashMap are used in storing different objects. Use 5 methods of all the mentioned collections. 8. What is the use of Arraylist in Java Collection? Create an Java Array Of ArrayList. Write a program to delete duplicate data from the Araylist. 9. Write a Java program to create a class called "Inventory" with a collection of products and methods to add and remove products, and to check for low inventory. Alert should be generated when the product quantity is less than or equal to 20%. 10. Write a Java program which store student names as keys and their corresponding scores as values (Using HashMap). The user is prompted to enter the number of students, followed by their names and scores. The program then displays the entered student names and their scores 11.Write a java program using Map and store data at specified locations and sort them. 12.Write a java program using Set and store data at specified locations and sort them.
13.Describe the concept of the "equals" method in Java Collections. How is it
used, and why is it important when working with objects in collections? 14.Write a program of Stack (using Java Collection) and delete the delete the elements upto an specified element. 15. What is a stream in Java? Write a Java IO program to read data from a file and write in another File. 16. Discuss about the File Input stream and File Output Stream in Java with examples 17. Write a Java program to copy the content of the file “file1.txt” into new file “file2.txt”. 18. How to find duplicate elements in a given integers list in java using Stream functions? 19. What is the use of transient keyword in Java. Explain with the help of an example 20. Write a Java program to read all mobile numbers present in given file. File contains other information also. 21. What is the basic difference between AWT and Swing 22. How can you create a simple AWT application with a button.Write code for it? 23.Compare Swing with AWT and mention how Swing is better. Write a program using Layout manager, actionlistener and frame in which show whether a person is eligible to cast a vote in an election based upon the age. 24. Write a Swing program in which enter three values in text boxes: Name, gender and marks and based upon the marks categorize first, second or third division. 25. Create an user interface using Swing and apply insert, delete, update operations. Also show the students details. Use JDBC to implement this. 26.How do we use HTML in Applet. Write a program of Applet and mention the steps to execute. 27.Can we pass parameter in an Applet? Write an Applet program in justification. 28.Explain URL, IP addess, port number and sockets in java networking. 29. Discuss the working of client server architecture. What is Client in client server architecture? 30. What is the use of Socket in Java? Create client and server socket using Java. 31. How do we use Socket class in the establishment of a client-server communication? Write a jave code to establish client and server sockets.
32.Write a client- server programs in Java exchanging message and
connection will terminate when one of the user enters "EXIT" 33.What are different types of Statements in Java? How do we use prepareStatemnt in entering data in Oracle table? 34.What is the use of JDBC in application development? Explain all 4 types of drivers. 35.Write a JDBC program and store data of 10 students and show that with the help of ResultSet. 36.How the Statement and PreparedStatements are different in JDBC? Explain 37.Write a JDBC program to Update the marks of the student with id = 2. 38.Write a JDBC program to Delete the student with id = 20. 39.Write a JDBC program to Insert a student data with id = 34. 40.What is the meaning of Serialization and deserialization in Java? Write a java program to store Name, Subject, University name and gender of a student in a file and fetch the stored data using deserialization. 41.Explain DOM model with different JavaScript objects. Wite a program and show the system information and navigation information 42.Discuss Document Object Model (DOM) with the properties of Document and location 43. Explain Life cycle of an Applet. Write a program in which take three number and find the smallest one. 44.Create a simple JavaScript program to manipulate the DOM (Document Object Model) of a web page. Write JavaScript code to accomplish the following tasks: 45.State with an example the various ways to add JavaScript to HTML. 46.Write a java Script showing the use of alert, prompt and Confirm box 47. Write a program to take user inputs in text boxes and find the smallest number out of three. 48. Write a Java Script validate function to check a password between 6 to 20 characters which contain at least one numeric digit, one uppercase and one lower case. 49.Write a Java script function that accept a string as a parameter and converts the first letter of each word of the string in upper case. 50.Write a JavaScript code which checks the contents entered in a forms text element. If the text entered is in the Upper case convert to Lower case. 51.How can we know the information of a browser using Document Object Model (DOM). 52. Write a Java script program in which takes Selected value of Chechboxes, Radio Button and Text box and show the value. Make sure radio button options are not same 53.Create a form for student information. Write a Java script code to find total, average, result and grade. 54.Develop a webpage having different form elements such as text box, check box, radio button select and print the data entered/ selected by the user using JavaScript 55. Write a JavaScript to validate given textboxes field. Make sure user is not submitting blank text box and email is proper. Also confirm that the first character of first name is in Capital. 56. Create a quiz using Javascript and ask using radio button and Checkboxes and mention the attained marks of an student.