Object Oriented Programming with JAVA

kitewormsΛογισμικό & κατασκευή λογ/κού

3 Νοε 2013 (πριν από 4 χρόνια και 1 μήνα)

135 εμφανίσεις


Object Oriented Programming with JAVA


1.

What is byte
-
code?

2.

What are command line arguments?

3.

Explain the use of
break

in Switch statement

4.

Explain? operator

5.

Why Java is important to Internet?

7.

What are the steps to be followed for execut
ing a Java program?

8.

What are the characteristics of Object
-
Oriented
-
Programming language?

9.

Explain type conversion and automatic type promotion

10. Differentiate between
while, do
-
while, for

loop

11. How Java is more secured than CGI?

12. What is Ja
va Virtual Machine?

13. What are the features of Java?

14. Explain the data types available in Java.

15. What are the different types of operators in Java?

16. Briefly discuss the features of JAVA.

17. What is JVM? Explain how JAVA works on a typical co
mputer

18. List out atleast 5 difference between JAVA & C++

19. Write a JAVA program to display Command line arguments

20. Explain why Java is the language of choice among network programmers.

21. How are command line arguments useful ?


CLA
SS, ARRAYS, STRINGS AND VECTORS


1.

Define Constructors

2.

Differentiate between
nested

and
inner

classes

3.

What are static members?

4.

Why do you need to use “final” with inheritance

5.

What is “Garbage Collector”

6.

What is the use of finalize() met
hod?

7.

Define Inheritance

8.

Write a short note on
Vector

9.

Differentiate between the classes and objects?

10. What is “method overloading” ? Explain

11. What is
method overriding?

12. What is dynamic method dispatch

13. Explain the importance of
sup
er

and
this

14. What are the class members? How do you access the class members?

15. Write a short note on String Class

16. What are
final variables

and
methods?

17. What are abstract methods

18. Elaborate the
object class

19. Explain how multilevel h
ierarchy is achieved

20. How does string class differ from string buffer class

21. Write a short note on
wrapper classes

22. Explain the types of
arrays

23. Explain different forms of inheritance with example. Compare & contrast
method overloading and
overriding.

24. Write a java program to accept two strings and check whether string1 is a sub
string of string2 or not.

25. Explain the relevance of static variable and static methods in JAVA
programming with an example

26. Describe the syntax of sin
gle inheritance in Java.

27. Explain the differences between the following with suitable examples

i.

Constructor and a method

ii.

Class method and an instance method

28. Write a program to implement multiple inheritance.

29. What is a vector?

How does it differ from an array? Explain with an


example.


INTERFACES, PACKAGES AND MULTITHREADED PROGRAMMING


1.

What are system packages?

2.

What is class path ?

3.

How the classes are hidden in Java ?

4.

What are interfaces ?

5.

Ho
w the interface variables are accessed ?

6.

What is access protection of a package ?

7.

How will you add classes to a package ?

8.

What is a thread ?

9.

What is a thread priority ?

10. How multiple inheritances is achieved in Java ?

11. Define a package.

12. What are the two methods to create a thread?

13. What is the importance of yield() and join() methods?

14. Differentiate between extending a class and implementing interface

15. What are the Java APIs used for package?

16. What is multi
-
threadi
ng

?

17. Describe the life
-
cycle of a thread

18. What is synchronization?

19. Explain deadlock and how to overcome the deadlock

20. Explain the terms “
suspending”, “resuming”

and
“stopping the thread”

21. Differentiate between thread class and runnable i
nterface

22. What is a package? Explain how we design a package, with an example.

23. With a suitable example program, explain how synchronization problem can


Be overcome. Write a program which illustrates priorities in Threads.

25. Describe di
fferent forms of interface implementation with their syntax
declaration.

26. What are the steps involved in creating user defined packages? Explain with
an example

27. Explain the state transition diagram of a thread

28. Explain collections in java

2
9. Write a note on java beans

30. Write a note on socket programming


MANAGING EXCEPTIONS, APPLET PROGRAMMING


1.

Explain the applet tag in HTML.

2.

What is applet?

3.

Explain execution of an applet.

4.

Define the Applet class.

5.

What is an exception
and an error?

7.

What are the types of exceptions?

8.

Define the importance of
finally

statement.

10. How applet differs from application?

11. How will you pass the parameters to an applet?

12. Why do you need to override update() method?

13. Explain th
e architecture of an applet.

14. Explain client/server relationship in reference to java applet.

16. How are exceptions handled in Java?

17. What are Java’s built
-
in exceptions?

18. Describe
try

and
catch

19. How to create user
-
defined exception classes?

20. Explain the lifecycle of an applet

21. Define java.awt

22. Define various sections in web page

23. Why do applet classes need to be declared as public?

24. Differentiate between init() and start() methods



GRAPHICS PROGRAMMING, INPUT / OUTPUT
, EV
ENT HANDLING
AND
SWINGS

1.

What is meant by initializing a file stream object?

2.

Describe the Graphics class

3.

What is a file?

4.

How would you check whether a file to be opened for writing already exists?

5.

Describe the arguments used in method
drawR
oundRect()

6.

Describe how a polygon can be drawn

7.

What are stream benefits ?

8.

Describe major tasks of input and output stream classes

9.

Distinguish between InputStream and OutputSttream

11. Describe
FileInputStream

and
FileOutputStream

12. Describ
e
ObjectInputStream amd ObjectOutputStream

classes

13. Explain the purpose of each argument in
drawArc()

method

14. Define the concept of streams in Java

15. What is serialization?

16. Describe
Data
I
nputStream

and
Data
OutputStream

17
. Describe
Buffered
Inp
utStream

and
BuffeedOut
ut
Stream

18. Differentiate between awt and swing components.

19
.
Explain how menubar

is

added to J
Frame


20. Expalin t
o create a JTree.

21. Explain how to create and add List, Label, checkbox, radiobuttons, combobox
to an applet.

22. Write an applet that handles mouse events.

23. Write an applet that handles keyboard events.

24.
Write an applet that handles actionevents and itemevents.

25.

Explain how popupmenu is added to JFrame