Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
29 views

Java_imp_qs

dfssgbf

Uploaded by

arshna166
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Java_imp_qs

dfssgbf

Uploaded by

arshna166
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Java questions

2 mark
1. Define the term polymorphism.
2. Explain the use of continue statement.
3. State the uses of super keyword in Java.
4. What are static variables?
5. What are interfaces?
6. List down the Java API packages.
7. Write any four methods of Thread class.
8. What are differences between Swing and AWT?
9. List the components of a Swing.
10. Define JTextField.
11. Write notes ontag.
12. Describe the arguments used in the method drawRoundRect().
13. List out the primitive datatypes used in Java.
14. List out the different branching statements used in Java.
15. Define a class.
16. Why multiple inheritance is not supported in Java?
17. What is an abstract class?
18. What are the methods in String class?
19. List down the Java API packages.
20. What are the differences between JTextField and JTextArea?
21. Define Null Layout.
22. Differentiate between drawRect() and fillRect() methods.
23. What is JDBC Driver? List various JDBC drivers.
24. Differntiate between the operators = and ==
25. What is the use of this keyword?
26. What is constructor overloading?
27. What is a derived class?
28. Define a Package.
29. What is exception handling?
30. Write a short note on Jcheckbox.
31. Define a Layout Manager. List different Layout Managers.
32. Distinguish between init() and start() methods of an applet.
33. Differentiate between the operators & and &&.
34. Write the syntax of switch case structure.
35. What is an abstract method?
36. Explain one dimensional array with example?
37. Define ComponentEvent Class.
38. Discuss various steps involved in loading and running a remote applet.
39. Differentiate between drawRect() and fillRect() methods.
40. Write a short note on commmand line argument.
41. How will you access class members using objects?
42. What is the use of protected keyword in java?
43. Explain newborn state of a thread?
44. What are differences between Swing and AWT?
45. Discuss various sections of web page.

5 marks
1. Explain the characterset of Java Program.
2. Write a Java program to find the smallest among 3 numbers.
3. Explain method overloading with example.
4. How will you implement hierarchical inheritance in Java?
5. Explain about user defined packages.
6. Write a Java program to demonstrate thread priorities.
7. Develop a simple program to implement KeyEvent class.
8. Write an applet that receives three numeric values as input from the user and display
the largest.
9. What are JDBC statements?
10. Evaluate the milestoness describing Java programming language.
11. Write a Java program to print armstrong numbers between 100 and 1000.
12. How will you declare metnods in Java?
13. Discuss final class in detail with an example.
14. How do you create & initialize a one dimensional array in Java?
15. Explain the initialization method of two dimensional array.
16. Diffrentiate between the following (provide an example to each subsection)
(a) JCheckBox and JRadioButton (b) Jlist and JComboBox
17. Write note on tag with an example.
18. Write an applet to draw a human face.
19. Explain the strucure of Java program.
20. Explain the use of nested loop with example.
21. How Java implements runtime polymorphism?
22. Explain throw, throws & finally with an example.
23. Explain how threads are created using Runnable interface.
24. Define an Event. List some of the Event Classes defined in Java AWT.
25. How to pass parameters to an applet? Explain with Example.
26. Explain the datatypes used in Java.
27. Write a Java program to print prime numbers between two limits.
28. How will you implement multilevel inheritance in Java?
29. Write a note on dynamic method dispatch.
30. Difference between String and StringBuffer?.
31. Define Swing and its architecture.
32. Write an applet that receives to integer values as input and display the sum
33. Describe various ways of drawing polygons.
34. Explain different types of literals with example.
35. Explain looping statements with example.
36. Explain throw, throws & finally with an example.
37. Write shortnote on (a) JRadioButton (b) JCheckBox.
38. Discuss the steps involved in the development and running a local applet.
39. How parameters can be passed to applet using tags?
40. Explain the data types used in Java.
41. Write a Java program to print the score card of a student using else if ladder structure.
42. How will you declare metnods in Java?
43. With example illustrate the usages of the keyword final.
44. How do you create & initialize a one dimensional array in Java?
45. What are different ways to create String Object?
46. Substantiate GridLayout and FlowLayout with the help of diagrams.
47. Write an applet that receives to integer values as input and display the sum.
48. Briefly explain JDBC Architecture.

15 mark
1. Illustrate the use of different operators in Java.
2. 23. Diffrentiate final methods ans final classes with examples.
3. 24. a)Differentiate between one-dimensional , two-dimensional arrays with
appropriate syntax
4. & examples b)Write a Java program to sort numbers & sort names in 2 different
arrays.
5. 25. What is Layout manager? Explain any three layout managers in which method is
used to
6. set the layout manager.
7. Analyse the use of branching statemets with examples.
8. 23. With examples explain interfaces
9. 24. Explain the life cycle of a thread? Write a Java program to implement thread
priorities.
10. 25. Explain jLabel and Jbutton with the help real world example
Differentiate between object oriented and procedure oriented programming. Expalin
the OOP
11. concepts.
12. 23. What is constructor overloading? Write a Java program to implement the
constructor overloading
13. mechanism.
14. 24. Define user defined packages. What are te steps involved in creating & using
packages with
15. example?
16. 25. Discuss various Layout managers.
Explain the features of Java.
17. 23. What is method overloading? Write a Java program to implement the method
overloading
18. mechanism.
19. 24. What is multithreading? Describe the 2 ways in which a thread can be created in
Java.
20. 25. Explain jLabel and Jbutton with the help real world example.
21. Define token of a language. Explain the different tokens used in Java.
22. What is method overloading? Write a Java program to implement the method
overloading
23. mechanism.
24. Explain in detail about the excepion handling mechanism with approprite syntax &
25. examples.
26. Explain the Event handling mechanism of java. Name a few Event handling classes.

You might also like