Answer the following problems.
problem 1)a) prepare down different control structures with exs. Why do we use them?
problem 2)a) What do you understand by multithreaded program?
b) What is synchronization? How it can be achieved?
c) prepare a program to create a tiny editor, which creates an array of string objects & reads in lines of text, storing each line in the array to read up to 10 times, until you enter “stop”.
problem 2)a) Describe how parameters can be passed to Applets with suitable ex.
b) Demonstrate the usage of Nested and Inner classes.
c) Show class hierarchy for Panel and Frame (Diagram).
problem 3)a) What are packages? Why are they used for? State one difference between package and interface.
b) What are layout manager? Describe at least four layout classes with constructors.
problem 4) prepare brief note on Introspection.
b) What is a java bean? State it’s two advantages.
c) What are servlets? Describe how to prepare and execute a servlets program.