All Difference in Java in One Place
☰Fullscreen
Table of Content:
- Question 1: What is the difference between C and Java?
- Question 2: State the difference between == operator and equals() method.
- Question 3: What's the difference between constructors and other methods?
- Question 4: Give a difference between a constructor and a method.
- Question 5: Differentiate between constructor and function.
- Question 6: What is the difference between the = symbol and == symbol?
- Question 7: What is the difference between actual and formal parameters?
- Question 8: Differentiate between formal parameter and actual parameter.
- Question 9: Give one example each of a primitive data type and a composite data type.
- Question 10: Write the difference between Polymorphism and Encapsulation.
- Question 11: Write the difference between Polymorphism and Encapsulation.
- Question 12: Differentiate between private and protected visibility modifiers.
- Question 13: Differentiate between public and private modifiers for members of a class.
- Question 14: How are private members of a class different from public members?
- Question 15: Write a difference between class and a object
- Question 16: State the difference between entry controlled loop and exit controlled loop.
- Question 17: Differentiate between static and non-static data members.
- Question 18: Write one difference between / and % operator.
- Question 19: What is the difference between the >> and >>> operators?
- Question 20: Question 2
- Question 21: What is difference between float and double in Java?
- Question 22:
(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 23: Are there any performance differences between the following two import statements?
import javax.swing.JOptionPane;
import javax.swing.*; - Question 24: Difference between constructor and method in Java
- Question 25: Differentiate between call by value or pass by value and call by reference or pass by reference. Java Language
- Question 26: Write one difference between Linear Search and Binary Search. Java Language
- Question 27: Give one point of difference between unary and binary operators.
- Question 28: Comparison between if-else if and switch-case
- Question 29: Differentiate between searching and sorting.
- Question 30: Write a difference between the functions isUpperCase( ) and toUpperCase( ).
- Question 31: What is the difference between a break statement and a continue statement?
- Question 32: What is the difference between the size and capacity of a Vector?
- Question 33: Differentiate between for loop and a while loop? What are its uses?
- Question 34: Differentiate Source Codes from Object Codes
- Question 35: What is the difference between while and do-while loops in C and Java?
- Question 36: State the difference between while and do while loop.
- Question 37: Write the difference between
lengthandlength()functions.