Create two threads, one thread to display all even numbers between 1 & 20, another to display odd numbers between 1 & 20. Note: Display all even numbers followed by odd numbers Hint: use join
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 ...
Write a program which finds the solution of Josephus problem using a circular linked list