public Java • 18 min read Top 50 Java Programming Interview Questions Java Programming Interview Questions Java Programming Interview Questions are always the deciding factor in any Java interview. Whether you are…
public Question What is the difference between public, protected, package-private and private in Java? Checkout Below Table The official tutorial may be of some use to you. ClassPackageSubclass (same pkg)Subclass (diff pkg)Worldpublic+…
public Question • 1 min read How do I rename a local Git branch? To rename the current branch: git branch -m To rename a branch while pointed to any branch: git branch -m…
public Question • 1 min read How do I delete a Git branch locally and remotely? git push -d git branch -d Note: In most cases, will be origin. Delete Local Branch To delete the local…
public Question • 1 min read How to Undo a Commit in Git $ git commit -m "Something terribly misguided" # (0: Accidentally commited) $ git reset HEAD~ # (1) [ edit files as necessary ] # (2) $ git add…