Find Question from board exams and competion.
1 . What is constructor? Explain the role of constructor in Java class by considering a suitable example and also list the type of constructor.
20242 . Define inheritance. Explain types of inheritance with suitable example.
20243 . Define Package. Explain steps in creation and implementation of package with example.
20244 . What is multithreading? How does Java support inter-thread communication? Explain with example.
20245 . How to handle multiple catch blocks for a nested try block? Explain with an example.
20246 . What is difference between String and String buffer and explain 3 methods of String and String Buffer class with example.
20247 . Write short notes on: (any two) i. JDBC Driver ii. Access Modifiers iii. JDK, JRE and JVM
20248 . Define array and multi dimensional array. Write a program to read two m x n matrices, perform multiplication operation and store result in third matrix.
20249 . Write a program to create the following simple GUI based application. If user press the Submit button, your program should store the information in a file named "exam.txt" only when he accepts the terms and condition otherwise it should display a message "please accept the terms and condition first".
202410 . Circle (O) the correct answer. i) Which one of the following is not a valid java bitwise operator? a) >> b) << c) >>> d) <<< ii) Which one of the following keyword is used to declare an exception? a) throws b) throw c) try d) catch iii) Which of these is an incorrect array declaration? a) int ary[] = new int[5]; b) int[] ary = new int[5]; c) int ary = int[5] new; d) int ary[]; ary = new int[5]; iv) Which one of the following access specifier is appropriate for members of superclass to access only from subclass? a) private b) protected c) public d) default v) Which one of the following is not a collection class defined in java? a) Linked List b) Hash Set c) Tree Set d) Graph Set
2019Other Subjects