Java | JSP | JSF Answers

Questions answered by Experts: 3 611

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

What class allows you to read objects directly from a stream? Briefly Explain.


Write java program to read and write character using file.


When threads are not lightweight process in java? What happens if an object is directly called by run() instead of Start().


Write a program to copy from one file to another.


Explain serialization and Deserialization using Serializable interface.


Create an employee object having properties name, date of birth, department, designation and salary. Let the employee class have appropriate getter/setters methods for accessing these properties. Initialize these properties through the setter methods. Store this object into a file "OutObject.txt". Read the same object from the same file and display its properties through getter methods.


1. Create a class of SalesPersons as a thread that will display five salespersons names.

2. Create a class as Days as other Thread that has an array of seven days.

3. Call the instance of SalesPersons in Days and start both the

 threads

4. suspend SalesPersons on Sunday and resume on Wednesday

Note: use suspend, resume methods from the thread

What is Thread Synchronization?


Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or not basing on a person’s height (m) and weight (kg). The criterion is very simple; if one’s BMI is 25 or greater, it signifies overweight. A BMI less or equal to 18.5 indicates underweight. Lastly, a BMI greater than 30 shows obesity.

You have been requested to create a program that that helps the Namibian Defence Forces’ (NDF) Captain to calculates the BMI of a person (BMI = weight/height2) and also determine whether the person has also completed running 10 km in the required time. Men should complete 10km in less than 60 minutes for them to be accepted. Women should do that under 80 minutes. Both males and females are accepted if their BMI is less than 25 and greater than 18.5. For 2018 intake, there are already 6 males selected and 1 female. The values for gender, mass and weight are enter by user inputs




create a simple program that will calculate the total amount due, accept payment, and display the change


LATEST TUTORIALS
APPROVED BY CLIENTS