Download Group- B - BackBenchersCafe.com

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
JAVA (10A)
YEAR 2014
Group- A
1. (a) Explain five features of Java. (5)
(b) Explain programming structure of Java.(5)
2. (a) What is Java Virtual Machine? (5)
(b) Write different data types in Java. (2)
(c) Suppose m and r are integers. Write a Java expression mr2 to obtain a floating point result.(4)
3. (a) Define abstract class with suitable example. (4)
(b) What is method overloading? Explain with example. (4)
(c) What is object?(2)
4. (a) What are the difference between constructor and methods? (4)
(b) Describe the relationship between an object and its defining class. (4)
(c) What is an accessor method?(2)
Group- B
5. (a) Is every applet an instance of java.appIet.AppIet? (2)
(b) Describe init(), start(), stop() and destroy() methods in Applet class. (7)
(c) Can you place a frame in an applet?(1)
6. (a) Describe the difference between Applet and Application Program. (5)
(b) Explain the need of multithreading with suitable example.(5)
7. (a) Explain life cycle of a thread. (5)
(b) What is Package? How it is created?(5)
8. Write short notes on any two: (2X5)
(a) Problems in multithreading
(b) Database connectivity with Java.
(c) Graphics alas in Java
(d) Eont class in Java.
2013
Group- A
1. (a) Explain the principles of object-oriented programming languages. (5)
(b) Compare Java, C and C++ with proper examples.(5)
2. (a) What is JVM? (2)
(b) Write down the rules for mating an identifier.
(c) Define class and object.(4)
3. (a) Why main() method is declared as static in a Java program? (3)
(b) What is method overloading? Explain with example. (4)
(c) What is constructor?(3)
4. (a) What is inheritance?
(b) How many types of inheritance are there in Java? Give example for each.
Group- B
5. (a) What is thread? (b) Write a program that demonstrates multi threading (using Java).
(c) What is synchronization?
6. (a) What is applet? Differentiate them from application program.
(b) Describe the complete life cycle of an applet.
7. (a) Write a program to find out the factorial of a number (using Java).
(b) What is package? How it is created?
8. Write Short notes on any two.
(a)JDBC
(b) HTML
(c) Collection Class
(d) Access-specifies.
YEAR 2012
Group- A
1. (a) Explain why Java is said to be platform independent language. (5)
(b) What are the difference between 'Java' and 'C programming language? (5)
2. (a) What is class and object? (3)
(b) What is encapsulation? (3)
(c) Explain constructor with an example. (4)
3. (a) What is method overloading? Explain with proper example. (7)
4. What is access-specifies? (3)
5. (a) Write a program to print the reverse of a given number (using Java)
(b) Explain JVM.
Group- B
6. (a) Explain the life cycle of thread. (5)
(b) What is thread? Explain thread with an example. (5)
7. (a) What is applet? Explain life cycle of applet. (5)
(b) What is HIML? What are the advantages of HTML? (5)
8. (a) What is package? (2)
(b) How a package can be created? Explain with an example. (8)
9. Write short notes on any two: (5+5)
(a) JDBC (b) Graphics class
(c) Lang package (d) Multithreading.
YEAR 2011
Group- A
1. Distinguish between the following: (10)
(a) Data abstraction and Data encapsulation
(b) Dynamic binding and Static binding
(c) Inheritance and Polymorphism
(d) Objects and Classes
2. (a) List at least five major C++ features that were intentionally removed from Java.
(b) What is a token? List the various types of tokens supported by Java and explain each types in brief.(5+5)
3. (a) Distinguish between 'break' and 'continue' statements with the help of suitable programs
(b) What is a vector? How is it different from an array? Illustrate with an example. (5+5)
4. (a) Write a program which will read a text and count all occurrences of a particular word.
(b) Write a program that accepts a list of five items from the command line and stores them in a vector. (5+5)
Group- B
5. (a) What is an interface? Describe the various forms of implementing interfaces. Give Java code for each case.
(b) Give an example where interface can be used to support multiple inheritance. Develop a stand-alone Java
program for the example. (5+5)
6. (a) What is the difference between multiprocessing and multithreading? What is to be done to implement these
in a program? Explain.
(b) Develop a simple read-life application program to illustrate the use of multithreads.(5+5)
7. (a) Describe the complete life cycle of a thread.
(b) What is the difference between 'suspending' and 'stopping' a thread? How do we set priorities for threads?
Explain. (5+5)
8. (a) Describe the different stages in the life cycle of an applet. Distinguish between init() and start() methods.
(b) Develop an applet that receives a number as input from the user and then displays the sum of the digits in
the number, total number of digits in the number and the number is then displayed in reverse order. (5+5)
YEAR 2010
Group- A
1. (a) How is Java more secured then other language? Explain. (5)
(b) What do you mean by conditional operator? Using conditional operator write a program to find the
maximum of three numbers. (5)
2. (a) Write a Java program to declare a method with a parameter. (5)
(b) Explain with an example the code of break and continue statements in Java in control structures. (5)
3. (a) what do you mean by scope of declaration? Explain with an example. (5)
(b) What do you mean by garbage collector? Explain it with an example. (5)
4. (a) What do you mean by command line arguments? Using command line arguments, write a program to
calculate factorial of N number. Taken N from command line. (5)
(b) What is the major difference between an interface and a class? What are the similarity between interfaces
and classes? (5)
5. (a) What is a finally block in exception handling mechanism? When and how is it used? Give a suitable
example. (5)
(b) What Java interface must be implemental by all threads? (5)
6. Write a short notes on: (5+5)
(a) Difference between Applet and Application
(b) Java virtual machine.
7. (a) What is a token? List the various type of token supported by Java. (5)
(b) Why main ( ) method is always declared as static? Explain. (5)
8. (a) What is method overloading? Explain method overloading with a suitable example.
(b) What is inheritance? Explain single inheritance with a suitable example. (5+5)
9. (a) How do applets differ from application programs? Explain. (5)
(b) Write an applet program to input a number and print it in reverse order.(5)
YEAR 2009
Group- A
1. (a) What is World Wide Web? What is the contribution of Java to the World Wide Web?
(b) What is multithreading? How does it improve the performance of Java?
(c) How is Java strongly associated with the Internet? (3+4+3)
2. (a) What are separators? Describe various separators used in Java.
(b) What are command line arguments? How are they useful?
(c) What is a token? List various types of token supported by Java. (4+3+3)
3. (a) What is type casting? Why is it required in programming?
(b) WAP to determine the sum of the following harmonic series for a given value of n :
1 + 1/2 + 1/3 + ....... + 1/n
(c) Write Java assignment statements to evaluate the following equation: Torque =(2m1m2) / (m1m2) * g
(4+3+3)
4. (a) What is an empty statement? Explain its usefulness.
(b)The numbers in the sequence 1,1,2,3,5,8,13,21 are called Fibonacci numbers. WAP using a do-while loop to
calculate and print the first m Fibonacci numbers.
(c) Discuss different levels of access protection available in Java. (3+3+4)
5. (a) How does string class differ from string buffer class?
(b) WAP to extract a portion of a character string and print the extracted string. Assume that m characters are
extracted, string with the nth character.
(c) What are the applications of wrapper classes? (3+4+3)
6. (a) What are the similarities between Interfaces and Classes?
(b) Give an example where Interface can be used to support multiple inheritance. Develop a stand-alone Java
program for the example.
(c) Discuss various levels of access protection available for packages and their implications. (3+3+4)
7. (a) What Java interface must be implemented by all threads?
(b) What are the two methods by which we may stop threads?
(c) What is synchronization ? When do we use it ? (4+3+3)
8. (a) What is a finally block? When and how is it used ? Give a suitable example.
(b) How do you define a try block?
(c) List some of the most common types of exception that might occur in Java. Give examples.