The document contains a list of rapid-fire questions and answers related to Java programming, covering fundamental concepts such as data types, operators, and Java features. It addresses key topics like multithreading, garbage collection, and platform independence, along with definitions of terms like JDK, JRE, and OOP. The content serves as a quick reference for Java programming knowledge and terminology.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
28 views2 pages
rapid fire
The document contains a list of rapid-fire questions and answers related to Java programming, covering fundamental concepts such as data types, operators, and Java features. It addresses key topics like multithreading, garbage collection, and platform independence, along with definitions of terms like JDK, JRE, and OOP. The content serves as a quick reference for Java programming knowledge and terminology.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Rapid Fire Questions
1. What is Java? - Programming language
2. What is multithreading? - Concurrent execution 3. What is the purpose of main()? - Entry point 4. JVM is a compiler? - No 5. Name 4 Java features. - OOP, Portable, Secure, Robust 6. What is bytecode? - Intermediate code 7. Full form of JRE? - Java Runtime Environment 8. Difference between structure and class? - Class has methods 9. What is garbage collection? - Memory management 10. What is platform independence? - Runs anywhere 11. Who developed Java? - James Gosling 12. What does OOPS stand for? - Object-Oriented Programming 13. What is a compiler? - Translates code 14. Why is Java robust? - Exception handling 15. What is class loader? - Loads classes 16. What is a package? - Collection of classes 17. What does JDK stand for? - Java Development Kit 18. What does static mean? - Belongs to class 19. What is method overriding? - Redefining method 20. Why is Java secure? - No pointers 21. What is polymorphism? - Multiple behaviors 22. What is dynamic binding? - Runtime method binding 23. What is the role of JVM? - Executes bytecode 24. What makes Java platform-independent? - Bytecode 25. What does args[] mean in Java? - Command-line arguments 26. What is JIT compilation? - Faster execution 27. Why are pointers avoided? - Security 28. What is a constant? - Fixed value 29. Purpose of import keyword? - Import packages 30. Types of comments in Java? - Single-line, Multi-line 31. What is a variable? - Data storage 32. List primitive data types. - int, char, float, boolean 33. Purpose of = operator? - Assignment 34. Default value of int? - 0 35. Size of int in Java? - 4 bytes 36. What is type casting? - Convert data types 37. What is an expression? - Combination of values 38. Use of boolean type? - True/False values 39. Difference between float and double? - Precision 40. What is an operator? - Symbol for operation 41. What is a*(b+c) if a=10, b=5, c=2? - 70 42. Arithmetic operations in Java? - +, -, *, /, % 43. Return type of relational operator? - Boolean 44. What does ++ do? - Increments 45. Why logical operators? - Boolean operations 46. What is the ternary operator? - condition ? true : false 47. What does a+=b mean? - a = a + b 48. What is precedence in operators? - Order of execution 49. Difference between == and equals()? - == compares reference, equals() compares values 50. What is bitwise & used for? - Bitwise AND 51. What is the output of 5/2 in Java? - 2 52. What is operator associativity? - Execution order 53. What is a data type? - Type of data 54. What is a byte? - 8-bit data type 55. Default value of boolean? - False 56. What is a variable name? - Identifier 57. Range of byte? - -128 to 127 58. What does double store? - Decimal values 59. What does null represent? - No reference 60. What is a Unicode character? - Universal encoding 61. What is a long data type? - 64-bit integer 62. What is > used for? - Greater than 63. What does % calculate? - Remainder 64. What does a-- mean? - Decrement 65. Example of a relational operator? - > 66. What does ! represent? - NOT operator 67. Use of parentheses in expressions? - Precedence control 68. How many operands in a+=b? - Two 69. What does ^ mean in bitwise? - XOR 70. What does x << 2 do? - Left shift 71. ASCII value of a? - 97 72. Can we overload main() in Java? - Yes 73. What happens when dividing float by 0? - Infinity 74. What is the result of 10 + "JAVA"? - 10JAVA 75. Can a variable start with a digit? - No 76. What does System.out.println() do? - Prints output 77. Precedence of * and +? - * first 78. Value of 2+3*4? - 14 79. Java is not case-sensitive? - False 80. What is a class? - Blueprint for objects 81. Can a static method be called without an object? - Yes 82. int is the default data type of Java? - No 83. What happens if a loop has no condition? - Infinite loop 84. Math.sqrt(121)? - 11 85. Full form of API? - Application Programming Interface 86. Result of ~1010? - Bitwise complement 87. Can two Java classes have the same name? - No