Why public, static, void and arguments in following statement required → public static void main(String args[])
[3 marks]List out different types of loops available in java with code snippet.
[4 marks]Describe Inheritance, Polymorphism and Data Encapsulation characteristics of OOP with example.
[7 marks]State three use of final keyword.
[3 marks]Describe java Access modifier.
[4 marks]Define concept of method overloading and method overriding with examples.
[7 marks]What is Abstract class? Describe usage of Abstract class with one example.
[7 marks]Describe use of Super keyword.
[3 marks]Describe various methods and usage of Object class in java.
[4 marks]Create a class called Employee that includes three pieces of information as instance variables—a first name (typeString), a last name (typeString) and a monthly salary (double). Your class should have a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, set it to 0.0. Write a test application named EmployeeTest that demonstrates class Employee’s capabilities. Create two Employee objects and display each object’s yearly salary. Then give each Employee a 10% raise and display each Employee’s yearly salary again.
[7 marks]Describe use of static keyword.
[3 marks]Define property of Dynamic method dispatch with example.
[4 marks]Create a class named Account with instance variables Ac_No,Name and Balance and methods display (), setdata (),deposit(). In display () method, display the instance variables value Ac_No,Name and Balance). And in setdata () method set the instance variable values (Ac_No,Name and Balance) and in deposit() method the amount that user wants to deposit that will be deposited.
Write a Java program to copy one array list into another.
[3 marks]Read two numbers from command line argument and print sum of them.
[4 marks]Describe steps to create a package with one example. 1/2
[7 marks]Describe following keywords: (i) throw (ii) throws
[3 marks]Compare Abstract class and Interface
[4 marks]Create a method named Withdraw () in the main function performing exception handling. Example: Balance = 1000; Withdraw = 12000 Here, Balance<Withdraw (throw exception)
[7 marks]Describe following term : finally and finalize
[3 marks]Write a java program to read employee details from emp.txt file and print on screen.
[4 marks]Create customer class which extends thread class and contains two instance variables name, ProductName and static variable Product Quantity. For example if two customers are trying to buy the same product at once then follow synchronization of two customers extending thread class.
[7 marks]Describe any one wrapper class with its method usage.
[3 marks]Write a java program to read students details from console and write that students details into emp.txt file.
[4 marks]Write a program to create GUI for Student registration form using JavaFX. 2/2
[7 marks]