The document consists of a series of theory questions covering various fundamental concepts in Java programming, including data types, control structures, object-oriented principles, and exception handling. It addresses topics such as the differences between operators and expressions, the purpose of constructors and packages, and the concepts of inheritance and polymorphism. Additionally, it includes questions about specific Java syntax and functionalities, such as the use of the 'import' keyword and the characteristics of primitive versus reference types.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
7 views1 page
Thques
The document consists of a series of theory questions covering various fundamental concepts in Java programming, including data types, control structures, object-oriented principles, and exception handling. It addresses topics such as the differences between operators and expressions, the purpose of constructors and packages, and the concepts of inheritance and polymorphism. Additionally, it includes questions about specific Java syntax and functionalities, such as the use of the 'import' keyword and the characteristics of primitive versus reference types.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1
Theory Question from complete syllabus
1. Which element is num[9] of array num?
2. What is the difference between operator and expression? 3. What do you mean by compound statement? Give example? 4. State one similarity between while and do while loop? 5. Explain break and continue statements? 6. How are primitive and reference types passed from the function? 7. What is a wrapper class? Define with the help of an example? 8. What is the purpose of new operator? 9. Define impure function? 10. What do you understand by private visibility of a method? 11. Define a default constructor? 12. What is a package? Give an example? 13. Define two types of java programs? 14. Why do we need constructor as a class member? 15. Explain if else if construct with an example? 16. Name a package that gets invoked by default? 17. State difference between = and ==? 18. If a function contains several return statements then how many of them will be executed? 19. Name the keyword to use the classes defined in a package? 20. Mention any two attributes for class declaration? 21. What is inheritance? How is it useful in java? 22. Differentiate between base and derived class? 23. What is the use of exception handling in java? 24. What is array.length? What is array[4]? 25. Explain instance variable with the help of an example? 26. What is meant by nesting of loops? Give example? 27. What do you understand by term escape sequences? Give two examples? 28. Define the concept that implements function overloading? 29. Define the term byte code? 30. What is meant by type conversion? How is implicit conversion different from explicit conversion? 31. Differentiate between static and non static data members? 32. Give prototype of function check which receives a character ch and an integer n and returns true or false? 33. What is the use of keyword import? 34. Name the keyword that informs that an error has occurred in an input/output operation/ 35. What are library classes? Give example? 36. Differentiate between linear and binary search? 37. Name the keyword that distinguishes between instance and class variable? 38. What do you mean by dynamic initialization of a variable? Explain with the help of suitable example? 39. Define temporary instance with example? 40. Give statement to display position of last space in a string? 41. Give prototype of a fuction search which receives sentence sen and a word wrd and returns 1 or 0? 42. State total size of bytes in array a[4] of char type and p[4] of float type? 43. Which unit of class gets called , when the object of class is created? 44. Differentiate between / and % operator/ 45. Write statement of convert a number stored in string x to double data type? 46. Name the package that contains scanner class? 47. State two features of a constructor? 48. Differentiate between data abstraction and data encapsulation? 49. What is ternary operator of java/ 50. State difference between token and identifier?