Posts

Understanding GIT

Image
  Getting started Method of installing GIT will be explained in the beginning.   Step 1 Install git by using following command " sudo apt install git"   Step 2 Confirm git installation by checking for a git version " git --version"   Step 3 Configure Git, enter credentials(user name and email) to identify you as the author if your work " git config --global user.name "your_username"" " git config --global user.email "your_email_address@example.com"" To check the configuration " git config --global --list" Clone a repository " git clone <repository path> " Convert a local directory to a repository Go to the required location and insert the command: " git init " Add a remote repository Create a new project in GitLab to hold your files. Visit this project's homepage, scroll down to Push an existing folder, and copy the command that starts with " git remote add " On your computer...

Object Oriented Programming

Image
  Object Oriented Programming Object Oriented Programming(OOP) is a programming concept that works on the principles of abstraction, encapsulation, inheritance, and polymorphism. It allows users to create the objects that they want and then, create methods to handle those objects. Basic concept of OOP is to create objects, re-use them throughout the program, and manipulate these objects to get results.   Class Class is a group of similar entities. It is only an logical component and not the physical entity.  Ex: if you have a class called "Racing Cars" it could have objects like Subaru, Nissan, Honda, BMW, etc. Its properties(data) can be price, max_speed, horse_power of these cars. While methods maybe performed with these cars are driving, reverse, braking etc. Object An object can be defined as an instance of a class, and there can be multiple instances of a class in a program. An Object contains both the data and the function,which operates on the data  Ex:chair,b...

JDK Version Differneces

Image
  JDK Versions Java version language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the java language has been governed by the Java Community Process(JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Java platform.        JDK vs JRE JRE(Java RuntimeEnvironment) is needed to run a Java program. A JRE includes, among other things, the Java Virtual Machine(JVM) and the "java" command-line tool. To develop new Java programs, you need to download a JDK(Java Development Kit). A JDK includes everything the JRE has, as well as the compiler javac and a couple of other tools like javadoc(Java documentation generator) and jdb(Java Debugger).     JDK versions    JDK 1 Basic Features   This was the initial release. This had very unstable APIs and one java web browser named WebRunner. First...

Linux basic Commands

Image
      Introduction   The Linux command line is a text interface to your computer. Often referred to as the terminal. It can look confusing and complex to use. In this post basic commands will be used to perform certain tasks.   Creating a new user : sudo adduser <username>                                   Example: sudo adduser hsenid     Reset password for the newly created user : sudo passw <username>                                   Example : sudo passwd hsenid     Create a directory called my_group in home directory and give permissions to user and group   Make directory : mkdir my_group Give permission : chmod u+o my_group Create a directory called my_user in home directory and give permissions to user only  ...

Changes of JDK versions (7 to 14)

Image
  JDK Version 7 JVM support for dynamic languages Compressed 64-bit pointers Small language changes Concurrency utilities under JSR New File I/O library adding support for multiple file systems, file metadata and symbolic links. Timsort is used to sort collections and arrays of objects instead of merge sort Library-level support for elliptic curve cryptography algorithms An XRender pipeline for Java 2 D, which improves handling of features specific to modern GPUs New platform APIs for the graphics features originally implemented in version 6u10 as unsupported APIs Enhanced library-level support for new network protocols, including SCTP and Sockets Direct Protocol Upstream updates to XML and Unicode Java deployment rule sets JDK Version 8 -Long Term Support version (LTS) Language-level support for lambda expressions Project Nashorn, a JavaScript runtime which allows developers to embed JavaScript code within applications Annotation on Java types Unsigned integer arithmetic Repeating...