Tag: Java
Learn how to – How To Install Scala on RHEL 8 / CentOS 8
Learn how to – How To Install Scala on RHEL 8 / CentOS 8. How do I install Scala on RHEL 8 / CentOS 8?. Scala is an object-oriented and functional programming language designed to be extremely concise and logical. Scala Programming is based on Java and powers popular applications, such as Spark. If you …
Learn how to – How To Install Scala on RHEL 8 / CentOS 8Read More
Learn how to – How To Install Apache Hadoop / HBase on CentOS 7
Learn how to – How To Install Apache Hadoop / HBase on CentOS 7. This guide will discuss the Installation of Hadoop and HBase on CentOS 7. HBase is an open-source distributed non-relational database developed under the Apache Software Foundation. It is written in Java and runs on top of Hadoop File Systems (HDFS). In …
Learn how to – How To Install Apache Hadoop / HBase on CentOS 7Read More
Learn how to – Install Java 11 on CentOS 7 / Fedora 38/37/36/35/34/33
Learn how to – Install Java 11 on CentOS 7 / Fedora 38/37/36/35/34/33. This article will help you to install Oracle Java 11 on CentOS 7 and Fedora 38/37/36/35/34/33. Java 11 is a long-term support (LTS) release. Java 11 was made available to the General public on 25 September 2018 and is production-ready. There are …
Learn how to – Install Java 11 on CentOS 7 / Fedora 38/37/36/35/34/33Read More
Learn how to – Execute / Open JNLP files on Linux – Ubuntu / Debian / Fedora / Arch
Learn how to – Execute / Open JNLP files on Linux – Ubuntu / Debian / Fedora / Arch. The Java Network Launch Protocol (JNLP) is a protocol which enables an application to be launched on a client desktop by using resources that are hosted on a remote web server. Java Plug-in software and Java …
Learn how to – Execute / Open JNLP files on Linux – Ubuntu / Debian / Fedora / ArchRead More
Java Constructor Tutorial – Why do we need Constructors ?
In this article we will discuss need and usage details of constructors in Java. What is a Constructor ? Constructor is a member function of the class that is used to initialize a newly constructed object i.e. initializing the member variables of object. Advertisements It has the same name as of the class. Why do …
Java Constructor Tutorial – Why do we need Constructors ?Read More
What is an Exception and How to do Exception Handling in Java
In this article we will discuss what is an exception in Java and how to handle exception in Java. What is an exception in Java An error occurred at runtime in a Java Application is called an Exception. If a triggered Exception is not handled then it will cause the application to crash. Checkout following …
What is an Exception and How to do Exception Handling in JavaRead More
How to add elements in a LinkedList in Java
In this article we will discuss how to add elements in LinkedList and then display them. Lets create a LinkedList of String i.e. Advertisements List<String> listOfStr = new LinkedList<>(); To add elements in LinkedList we will use its add() function i.e. boolean add(E e) add() member function of LinkedList always appends the element in the …
Java LinkedList Tutorial
LinkedList is a kind of List used to store elements. Its an ordered collection i.e. elements added at a position in LinkedList will remain in that position till modified by user. It internally uses a doubly linked list datastructure implementation i.e. each element is stored at separate node. Each node has a reference to previous and …
How to create and add elements in a HashSet in Java
+In this article we will discuss how to create a HashSet of integers and add elements in it. Creating a HashSet Object for integer // Create a HashSet of int HashSet<Integer> setOfInts = new HashSet<>(); This hashset object can contain only unique integers. Advertisements Adding Element in a HashSet To add an element in a …
How to create and add elements in a HashSet in JavaRead More
How to iterate over a LinkedList in Java
In this article we will discuss how to iterate over a LinkedList Collection in Java and access objects. To fetch the Iterator from a LinkedList object use following member function, Advertisements ListIterator<E> listIterator(); It will return ListIterator object that implements Iterator that provides functions to iterate over the LinkedList object. It manages an internal Cursor which is …