Object Oriented Programming in Java - Unit Wise Questions

Unit 1: Introduction to Java
20 Questions

1.

i) Which one of the following is not a valid java bitwise operator?

a) >>    b) <<    c) >>>    d) <<<

1 marks | Asked in 2019-Objective

2. Define OOP. Explain features of Object Oriented Programming Language. [1 + 4]

5 marks | Asked in 2019

3. Explain different types of control statements used in java. [5]

5 marks | Asked in 2019

1.

ii) Which one of the following keyword is used to declare an exception?

a) throws    b) throw    c) try    d) catch

1 marks | Asked in 2019-Objective

1.

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];

1 marks | Asked in 2019-Objective

4. Define Abstract Class. Explain different types of Access controls available in java.[1 + 4]

5 marks | Asked in 2019

5. Define method overriding? Write any program to implement concept of multiple inheritance in Java. [1 + 4]

5 marks | Asked in 2019

1.

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

1 marks | Asked in 2019-Objective

6. Why it is important to handle exception in java? Write a program to illustrate the use of exception handling. [1 + 4]

5 marks | Asked in 2019

1.

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

1 marks | Asked in 2019-Objective

1.

vi) Which one of the following inheritance is best implanted using interface in java?

a) single inheritance    b) multi-level inheritance    c) multiple inheritance    d) hierarchical inheritance

1 marks | Asked in 2019-Objective

7. Define the use of static keyword. Write any four String methods used in java with example. [1 + 4]

5 marks | Asked in 2019

8. Define super, final and this keyword in java. Explain the concept of MVC in brief. [1 + 1 + 1 + 2]

5 marks | Asked in 2019

1.

vii) Which one of the following method is called only once during the run time of your applet?

a) stop()    b) paint()    c) init()    d) start()

1 marks | Asked in 2019-Objective

1.

viii) Which of these method of class String is used to compare two String objects for their equality?

a) equals()    b) Equals()    c) is Equal()    d) Is Equal()

1 marks | Asked in 2019-Objective

1.

ix) What is the default value of priority variable MIN_PRIORITY and MAX_PRIORITY?

a) 0 & 63    b) 1 & 10    c) 0 & 1    d) 1 & 32

1 marks | Asked in 2019-Objective

1.

x) Which one of the following is not java swing container?

a) Panel    b) Tabbed Pane    c) Scroll Pane    d) Scroll bar

1 marks | Asked in 2019-Objective

9. a) Define multithreading. Write a java program to show the inter-thread communication. [1 + 4]

b) Define Stream. Write a program in java to copy the content from one file to another. [1 + 4]

10 marks | Asked in 2019

10. a) Define Collection Class. Explain different Wrapper classes and associated methods in java. [1+4]

b) Define AWT. Explain different types of Layout Managers in java. [1 + 4]

10 marks | Asked in 2019

11. a) List and explain any five swing controls with their uses. [5]

b) Define JDBC. Write a program to display all records from a table of database. [1 + 4]

10 marks | Asked in 2019

Unit 2: Tokens, Expressions and Control Structures
0 Questions
Unit 3: Object Oriented Programming Concepts
0 Questions
Unit 4: Inheritance & Packaging
0 Questions
Unit 5: Handling Error / Exceptions
0 Questions
Unit 6: Handling Strings
0 Questions
Unit 7: Threads
0 Questions
Unit 8: I/O and Streams
0 Questions
Unit 9: Understanding Core Packages
0 Questions
Unit 10: Holding Collection of Data
0 Questions
Unit 11: Java Applications
0 Questions
Unit 12: Introduction to Java Applets
0 Questions
Unit 13: Database Programming using JDBC
0 Questions