Which one of the following statements is wrong?
Official theoretical question paper for Object Oriented Programming (PCC-CS503) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
Which one of the following statements is wrong?
A sub-class having more than one super class is called
Out of the following which one is not correctly matched?
What is the correct ordering for the import, class and package declarations found in a single file?
Which one of the following statements is not correct?
What results from the following fragment of code? 1. int x = 1; 2. String [] names = {"Fred", "Jim", "Sheila"}; 3. names[--x] += "."; 4. for (int i = 0; i < names.length; i++) { 5. system.out.println(names[i]); 6. }
What is the output of this code fragment? 1. int x = 3 int y = 10; 2. System ou println (y % x );
Which of the following statements is correct?
The wait() and notify() methods are used to perform
If a data-item is declared as a protected access specifier then it can be accessed
Which one of the following is wrong?
What type of following stream is used to read binary data?
Write down a program to implement Command Line arguments.
What are the main characteristics of OOP Language? Explain each.
How does string class differ from String buffer class?
What are Implicate and Explicit Casting? Explain with the help of example.
What is the difference between 'error' and 'exception'? What are the benefits of organizing classes into packages?
a) What is mutable strings? b) What are the benefits of organising classes into package? c) How can you create your own package and add classes in that? Explain with the help of an example. d) Explain with the help of an example, how java gets benefited by using Interface?
Write short notes on any three of the following: a) Wrapper Class b) Meta class c) String Tokenizer Class d) getCodeBase() methods.
a) Explain the life cycle of an Applet. b) List various attributes of Applet tag used in HTML. Explain the purpose of these attributes c) Write a Java program that uses the draw Polygon() metod of Graphics class to draw a triangle with endpoints (25, 30); (75, 80) and (50, 50).
a) Why does Java have two ways to create child threads (by extending Thread or implementing Runnable) and which approach is better? b) Define an exception called "NotEqualException" that is thrown when a float value is not equals to 3.14 write a program that uses that user defined exception. c) Write a Multithreading program to generate the square roots to the first 30 natural numbers using Runnable interface. d) What do you mean by 'Synchronization'? Why do we need it?
a) How applet is different from frame and panel? Explain. b) How threads are made to communicate with each other? Explain with example. c) Explain any three events with suitable example.