We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db66b99 commit 935ee03Copy full SHA for 935ee03
README.md
@@ -822,7 +822,7 @@ Frequently asked Java Interview questions
822
**Example:**
823
824
```java
825
- public class FinalExample {
+ public class FinalExample {
826
final int VALUE = 100;
827
828
public final void display() {
@@ -841,8 +841,11 @@ Frequently asked Java Interview questions
841
protected void finalize() throws Throwable {
842
System.out.println("Finalize method called");
843
}
844
- } ```
845
-
+ }
+ ```
846
+
847
+ **[⬆ Back to Top](#table-of-contents)**
848
849
21. ### What is the difference between '==' and equals() method?
850
851
Both **==** and **.equals()** methods are used to compare objects, but they work in different ways:
0 commit comments