Case Study: Write a top-level program for creating a GRAPH instance and running both Prim’s and Kruskal’s algorithms on it, and printing out the respective MSTs returned, along with the total cost and runtime (in milliseconds) for each one. The input ...
SIKSHAPATH Latest Questions
Create a student class object array of size four having attributes name, designation and salary. Let the student class have appropriate getter/setters methods for accessing these attributes. Initialize these attributes through the setter methods. Store this object into a file ...
Write a function to convert an infix expression to a postfix expression. Pass a one-dimensional character array P to the function as input (infix exp) and return character array Q (postfix exp). Test your program for following input P : ( ...
1 Briefly explain ByteArrayInputStream and ByteArrayOutputStream. 2Briefly explain CharArrayReader and CharArrayWriter 3Explain serialization and Deserialization using Serializable interface. 4What is common and how do the following streams differ: InputStream, Reader? 5Create two threads and assign names ‘Scooby’ and ‘Shaggy’ to ...
Create a student class object array of size four having attributes name, designation and salary. Let the student class have appropriate getter/setters methods for accessing these attributes. Initialize these attributes through the setter methods. Store this object into a file ...