Skip to content
sneppets

sneppets

  • Privacy
sneppets-java8

When to use java.lang.Class, forName() and newInstance() difference?

August 6, 2020August 6, 2020 Editorial StaffLeave a Comment on When to use java.lang.Class, forName() and newInstance() difference?

This tutorial guides you on how to use java.lang.Class, forName() and newInstance() methods with examples. 

Java class, java
sneppets-java8

Compare two objects using equals() method of Object Class

July 25, 2020 Editorial StaffLeave a Comment on Compare two objects using equals() method of Object Class

This tutorial guides you on how to compare two objects using equals() method of Object class in Java. There is a class called “Object” in “java.lang” package which is the super class of all classes in java. Method equals() is… Read More!

Java class, compare, equals, java, methods, Object
sneppets-java8

Error: Could Not Find Or Load Main Class

February 11, 2020February 12, 2020 Editorial StaffLeave a Comment on Error: Could Not Find Or Load Main Class

The most common error that new Java developers would experience while running java program is “Could Not Find Or Load Main Class“.

Java class, eclipse, java, main
Copyright © 2018 Sneppets. All Rights Reserved