a. Write a JAVA Program to demonstrate Constructor Overloading and MethodOverloading.b.Write a JAVA Program to implement Inner class and demonstrate its Accessprotection.
Write a program in Java for String handling which performs the following:i) Checks the capacity of StringBuffer objects.ii) Reverses the contents of a string given on console and converts the resultant string inupper case.iii) Reads a string from console and appends it to the resultant string of ii.
a. Write a JAVA Program to demonstrate Inheritance.b. Simple Program on Java for the implementation of Multiple inheritance usinginterfaces to calculate the area of a rectangle and triangle.
Write a JAVA program which hasi. A Class called Account that creates account with 500Rs minimum balance, a deposit()method to deposit amount, a withdraw() method to withdraw amount and also throwsLessBalanceException if an account holder tries to withdraw money which makes thebalance become less than 500Rs.ii. A Class called LessBalanceException which returns the statement that says withdrawamount ( Rs) is not valid.iii. A Class which creates 2 accounts, both account deposit money and one accounttries to withdraw more money which generates a LessBalanceException takeappropriate action for the same.
Write a JAVA program using Synchronized Threads, which demonstrates ProducerConsumer concept.
Write a JAVA program to implement a Queue using user defined Exception Handling(also make use of throw, throws.).
Complete the following:1. Create a package named shape.2. Create some classes in the package representing some common shapes like Square,Triangle, and Circle.3. Import and compile these classes in other program.
Write a JAVA Programa. Create an enumeration Day of Week with seven values SUNDAY throughSATURDAY. Add a method is Workday( ) to the DayofWeek class that returns true ifthe value on which it is called is MONDAY through FRIDAY.For example, the call DayOfWeek.SUNDAY.isWorkDay ( ) returns false.
Write a JAVA program which hasi. A Interface class for Stack Operationsii. A Class that implements the Stack Interface and creates a fixed length Stack.iii. A Class that implements the Stack Interface and creates a Dynamic length Stack.iv. A Class that uses both the above Stacks through Interface reference and does theStack operations that demonstrates the runtime binding.
Write a JAVA program to print a chessboard pattern.
Write a JAVA Program which uses FileInputStream / FileOutPutStream Classes.
Write JAVA programs which demonstrates utilities of LinkedList Class.
Write a JAVA program which uses Datagram Socket for Client Server Communication.
Write a JAVA applet program, which handles keyboard event.