Name :- SARVESH KUMAR Sumit Gupta Reg no :- 12103110 Roll no :- RD2111A39 Q1. Write a program to create two Threads. 1 st Thread printing first character of each word in the sentence entered by the user and using same input of 1 st Thread in 2nd Thread to print each 2nd character of the sentence entered, after a period of 1 sec. Input from Thread A to be passed to Thread B and ensure that Thread A gets executed completely first. Output:- Q.2 What are the various constructors of JButton Class? Discuss any five methods of JButton class with the help of an example. Output:-