Posts

Introduction to Apache Spark with Scala:

Image
Apache Spark is a highly developed engine for data processing on large scale over thousands of compute engines in parallel. This allows maximizing processor capability over these compute engines. Spark has the capability to handle multiple data processing tasks including complex data analytics, streaming analytics, graph analytics as well as scalable machine learning on huge amount of data in the order of Terabytes, Zettabytes and much more. What is Apache Spark? Apache Spark is an open-source cluster computing framework that was initially developed at UC Berkeley in the AMPLab. As compared to the disk-based, two-stage MapReduce of Hadoop, Spark provides up to 100 times faster performance for a few applications with in-memory primitives. This makes it suitable for machine learning algorithms, as it allows programs to load data into the memory of a cluster and query the data constantly. A Spark project contains various components such as Spark Core and Resilient Distributed

Abstract class in Java

Image
Abstract class in Java Abstract class in Java as the interface, but may contain the default execution method. The abstract class can have abstract methods without the body and can have methods with the application. Classes are declared as abstract, known as abstract classes. It can have abstract and non-abstract methods. Get 100% Practical Java training ·          Abstract classes must be declared and the keyword is abstract. ·          They may have abstract and non-abstract methods. ·          should not encourage. ·          They can have a static and solid builder as well. ·          They may have work that will force the subclass method not to change the body. package Mypkg; public class myabs {       /**        * @param args        */       public static void main(String[] args) {             // TODO Auto-generated method stub         System. out .println("Entered myabs-Main() ");         System. out .println("******

Java Array

Image
Java Array: Normally, an array is a collection of similar type of elements which have a contiguous memory location. Java array  is an object which contains elements of a similar data type. Additionally, The elements of an array are stored in a contiguous memory location. It is a data structure where we store similar elements. We can store only a fixed set of elements in a Java array. Array in Java is index-based, the first element of the array is stored at the 0th index, 2nd element is stored on 1st index and so on. Unlike C/C++, we can get the length of the array using the length member. In C/C++, we need to use the sizeof operator. In Java, array is an object of a dynamically generated class. Java array inherits the Object class, and implements the Serializable as well as Cloneable interfaces. We can store primitive values or objects in an array in Java. Like C/C++, we can also create single dimentional or multidimentional arrays in Java. Features of Array 1.