List out features of Java. Explain any two features.
[3 marks]Write a single program which demonstrates the usage of following keywords:
[4 marks]import, ii) new, iii) this, iv) break, v) continue Show how to compile and run the program in java.
[ marks]Demonstrate use of try-catch construct in case of hierarchical Exception Handling. (i.e handling various exception belongs to the exception hierarchy)
[7 marks]Explain following Java keywords using appropriate examples:
[3 marks]static, ii) final, iii) super
[ marks]Consider class Aas the parent of class B. Explain among the following which statement will show the compilation error.
[4 marks]Aa = new A(); ii) Aa = new B(); iii) Bb = new A(); iv) Bb = new B();
[ marks]Write a java program to take infix expressions and convert it into prefix expressions.
[7 marks]Write a java program that evaluates a math expression given in string form from command line arguments.
[7 marks]Defines types of inheritance.
[3 marks]Explain the following constructors using appropriate example:
[4 marks]Default constructor and Parameterised constructor ii) Shallow copy and Deep copy constructor
[ marks]Explain file io using byte stream with appropriate example. hint: use FileInputStream, FileOutputStream
[7 marks]Define types of polymorphism
[3 marks]Explain the following:
[4 marks]Arguments and Parameters of a function ii) Pass by Value and Pass by reference1
[ marks]Explain file io using character stream with appropriate example. hint: use FileReader, FileWriter
Define Encapsulation and access specifier
[3 marks]Explain multithreading using Thread class
[4 marks]Write a short note on Java Collections.
[7 marks]Differentiate between Abstract class and Interfaces
[3 marks]Explain multithreading using Runnable interface
[4 marks]Write a program to add input elements in ArrayList collection class, then sort the inserted elements in descending order and display the sorted output. hint: use Collections.reverseOrder()
[7 marks]Explain following Java keywords using appropriate examples:
[3 marks]throw, ii) throws, iii) finally
[ marks]In multi-threading using Thread class, explain with an example how a start() method call invokes the run method of the class extending Thread class.
[4 marks]Write a short note on JAVAFX controls.
[7 marks]Explain thread life cycle
[3 marks]In multi-threads using the Runnable interface, explain with an example how a start() method calls the run() method of a class implementing a runnable interface.
[4 marks]Develop a GUI based application using JAVAFX controls.
[7 marks]