Encapsulation in Java Programming

Java – Encapsulation in Java

  • December 22, 2020
  • 0 Comments

Encapsulation is a protective mechanism by which members of a class (method and variables) are prevented from being accessed by members of other class.   The best example of encapsulation is the class because that binds its variables and methods and hides their complexity from other class.   In a class, the general variables and […]

For Each Loop for Associative Array Programming

Java – For Each Loop for Associative Array

  • December 22, 2020
  • 0 Comments

The for-each loop is specially used to handle elements of a collection or mostly i is used to handling associative array. A collection is represented by a group of elements or objects. The list is an example of the collection since it stores a group of objects. The for-each loop repeatedly executes a group of […]

Use of Final Keyword in Java Programming

Java – Use of Final Keyword in Java

  • December 22, 2020
  • 0 Comments

If you declared Java variable is final, then that variable cannot re-declared that declaration for the single time. Means that variable can be initialized only for a single time.  If Java classes are declared final, then those Java classes cannot be further extended. It means you cannot inherit the data from the superclass. The final […]

Extends Keyword for Inheritance Programming

Java – Extends Keyword for Inheritance

  • December 22, 2020
  • 0 Comments

In inheritance, the base class inherits the superclass. To inherit a class in Java extends keyword is used in the subclass definition to inherit a superclass. Create two Java class first: MyInfo, second is FullInfo extends from MyInfo. This means FullInfo will inherit information from MyInfo class. Inheritance is used to do work faster. Here […]

Program to Take Input and Display Programming

Java- Program to Take Input and Display

  • December 22, 2020
  • 0 Comments

Write a Java program to take input from user as “Name” and Display as “Hello Name” Input Your This program is done by using Scanner class to use Scanner class you have to import page called Scanner import java.util.Scanner; Java Scanner class is used to enable keyboard for input operations Scanner obj_name = new Scanner(System.in); […]

Abstraction in Java Programming

Java – Abstraction in Java Programming

  • December 22, 2020
  • 0 Comments

Abstraction is the mechanism by which you hide data that is not required by a user. The advantage of abstraction is that the user can work only with the needed data and is not required to view the unwanted data. i.e the owner of the car must know how to drive. In OOPs, you must […]

Task of Java Virtual Machine Programming

Java – Task of Java Virtual Machine

  • December 20, 2020
  • 0 Comments

In Java, a compiler translates the Java source code into an intermediate code known as bytecode for virtual machine known as JVM (Java Virtual Machine). Bytecode is the machine language for JVM and is not machine-specific; instead, the machine-specific code is generated by the Java interpreter, which serves as a mediator between the virtual machine […]

introduction to java programming Programming

Java – Introduction, Features, Versions & History

  • December 20, 2020
  • 0 Comments

Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented. Java inherits its object-oriented features from C++. Java language was created by James Gosling, a software developer at Sun Microsystems, in 1991.  It was first named as “OAK” but it was later named as “JAVA”. It was officially launched in 1995, Java derives […]

javascript Programming

JavaScript – Write Program to Print Hello World!!!

  • September 17, 2020
  • 0 Comments

JavaScript is scripting language which is similar to C. It is syntax and logic are similar to C, C++ and Java. But Java is completely different then JavaScript Keep in mind. JavaScript has fewer features than the C, C++ like we don’t have a specialized pointer in JavaScript because it is a client-side scripting programming […]