0% found this document useful (0 votes)
4 views2 pages

Java TH Assign 1

This document outlines a Java assignment consisting of various questions related to object-oriented programming principles, Java language features, and programming concepts. It covers topics such as encapsulation, polymorphism, inheritance, and differences between Java and other programming languages. Additionally, it addresses Java's platform independence, data types, operators, and other fundamental programming constructs.

Uploaded by

rajghadi553
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Java TH Assign 1

This document outlines a Java assignment consisting of various questions related to object-oriented programming principles, Java language features, and programming concepts. It covers topics such as encapsulation, polymorphism, inheritance, and differences between Java and other programming languages. Additionally, it addresses Java's platform independence, data types, operators, and other fundamental programming constructs.

Uploaded by

rajghadi553
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

JAVA

ASSIGNMENT 1
1. What are the OOP Principles?
2. What is difference between object oriented programming language and object based
programming language?
3. What is Encapsulation?
4. What is Polymorphism?
5. What is Inheritance?
6. What are the features of Java Language?
7. What is the need for Java Language?
8. What is platform independency?
9. What is Architecture Neutral?
10. How Java supports platform independency?
11. Why Java is important to Internet?
12. What are the types of programs Java can handle?
13. What is an applet program?
14. Compare Application and Applet.
15. What are the advantages of Java Language?
16. Give the contents of Java Environment (JDK).
17. Give any 4 differences between C and Java.
18. Give any 4 differences between C++ and Java.
19. What are the different types of comment symbols in Java?
20. What are the data types supported in Java?
21. What is the difference between a char in C/C++ and char in Java?
22. How is a constant defined in Java?
23. What is the use of final keyword?
24. What are the different types of operators used in Java?
25. What is short-Circuit operator?
26. What is labeled break?
27. What is the use of for each control structure?
28. What is the need for static variables?
29. What is the need for static methods?
30. Compare static constants and final constants.
31. Why is main method assigned as public?
32. Why is main method assigned as static?
33. What are the types of variables Java handles?
34. What are the relationships between classes?
35. What is the general form of a class?
36. What is the use of new keyword?
37. If ObjA1 is an object of class A created using new keyword, What does the statement A
ObjA2=ObjA1; mean?
38. What is a constructor?
39. What is the difference between a constructor and a method?
40. What is the use of this keyword?
41. What are destructors?
42. How is object destruction done in Java?
43. What is Garbage collection?
44. What is the use of finalize method?
45. Compare Garbage collection and finalize method?
46. How is it guaranteed that finalize methods are called?
47. What is method overloading?
48. What is a String in Java?
49. What is the difference between a String in Java and String in C/C++?
50. Name a few String methods.
51. What is the difference between Concat method and + operator to join strings?
52. What is String Buffer?
53. How does String class differ from the String Buffer class?
54. Name some methods available under String Buffer class.
55. Output of some expressions using String methods.
56. How will you initialize arrays?
57. What is arraycopy method? Explain with syntax.
58. What are the methods under [Link]?
59. Use the array sort method to sort the given array.
60. Give the syntax for array fill operation.
61. What is vector? How is it different from an array?
62. What is the constraint for using vectors?
63. What is wrapper class?
64. What are the different access specifiers available in Java?
65. What is the default access specifier in Java?
66. What is a package in Java?
67. Name some Java API Packages.
68. Name some JavaDoc Comments.
69. What is CommandLine Arguments.

You might also like