Skip to content
sneppets

sneppets

  • Privacy
sneppets-java8

How to clone or copy the class objects in Java ?

August 6, 2020 Editorial StaffLeave a Comment on How to clone or copy the class objects in Java ?

This tutorial guides you on how to clone or copy the class objects in Java. The process of creating an exact copy of an existing class object is called cloning. In cloning, when you clone an object, a bit wise… Read More!

Java class-object, clone, cloning, java, Object
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
install JDK windows 10

How to install JDK and Eclipse on Windows 10 Machine ?

August 5, 2020 Editorial StaffLeave a Comment on How to install JDK and Eclipse on Windows 10 Machine ?

This tutorial guides you on how to install Oracle JDK and Eclipse on Windows 10 Machine. For system requirements to install JDK on Windows please check this link Oracle JDK Certified System Configurations. For Eclipse installation let’s use Eclipse installer 2020-06… Read More!

software eclipse, java, jdk, windows-10
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

Casting Primitive Data Types in Java

July 24, 2020July 27, 2020 Editorial StaffLeave a Comment on Casting Primitive Data Types in Java

This tutorial guides you on casting primitive data types in order to convert from one primitive data type to another primitive data type in Java. This can be achieved in two ways, widening and narrowing. 

Java casting, java, primitives

Posts navigation

Older posts
Newer posts
Copyright © 2018 Sneppets. All Rights Reserved