
All Difference in Java in One Place
☰Fullscreen
Table of Content:
- Question 1: Are there any performance differences between the following two import statements?
import javax.swing.JOptionPane;
import javax.swing.*; - Question 2: What's the difference between constructors and other methods?
- Question 3: What is the difference between a break statement and a continue statement?
- Question 4: What is the difference between the >> and >>> operators?
- Question 5: What is the difference between the size and capacity of a Vector?
- Question 6: Differentiate between for loop and a while loop? What are its uses?
- Question 7: What is the difference between actual and formal parameters?
- Question 8: What is the difference between the = symbol and == symbol?
- Question 9: What is the difference between while and do-while loops in C and Java?
- Question 10: Differentiate between private and protected visibility modifiers.
- Question 11: Differentiate Source Codes from Object Codes
- Question 12: Difference between constructor and method in Java
- Question 13: What is the difference between C and Java?
- Question 14: Write the difference between Polymorphism and Encapsulation.
- Question 15: State the difference between entry controlled loop and exit controlled loop.
- Question 16: Give one example each of a primitive data type and a composite data type.
- Question 17: Give one point of difference between unary and binary operators.
- Question 18: Give a difference between a constructor and a method.
- Question 19: Write the difference between Polymorphism and Encapsulation.
- Question 20: What is difference between float and double in Java?
- Question 21: Differentiate between static and non-static data members.
- Question 22: Differentiate between formal parameter and actual parameter.
- Question 23: Write one difference between / and % operator.
- Question 24: Differentiate between constructor and function.
- Question 25: Differentiate between searching and sorting.
- Question 26: Write the difference between
length
andlength()
functions. - Question 27: Write one difference between Linear Search and Binary Search. Java Language
- Question 28: Differentiate between call by value or pass by value and call by reference or pass by reference. Java Language
- Question 29: Differentiate between public and private modifiers for members of a class.
- Question 30: How are private members of a class different from public members?
- Question 31: State the difference between while and do while loop.
- Question 32: State the difference between == operator and equals() method.
- Question 33: Write a difference between the functions isUpperCase( ) and toUpperCase( ).
- Question 34: Comparison between if-else if and switch-case
- Question 35:
(a) Differentiate between if else if and switch-case statements
(b) Give the output of the following code:
String P = "20", Q ="19"; int a = Integer.parseInt(P); int b = Integer.valueOf(Q); System.out.println(a+""+b); (c) What are the various types of errors in Java?
(d) State the data type and value of res after the following is executed:
char ch = '9'; res= Character.isDigit(ch); (e) What is the difference between the linear search and the binary search technique?
- Question 36: Write a difference between class and a object
- Question 37: Question 2
Related Questions
No Program Data.