Skip to main content

Posts

Showing posts with the label Java

What is Class in java ?

 Table of Content Introduction What is mean By class? Why class is important in Java ? Syntax Simple Example Video Explanation If Java development kit is not installed on machine refer this Installation of Jdk Introduction: In this Blog Post we discuss about Class in java .  Class is most important part in object oriented programming languages like Java,python etc. this article helps student and beginers to Understant how to create a class in simple word . in this article we cover some point like what is class actually,Syntax of class ,Simple example of class and video that helps to understand the class in java. Let's Start  What is  class in java? Class is a Blue print of Object . Class is not Physical entity because it can not consume memory. class is collection of member function and Data members. In other world member functions are called as functions and methods. and Data members are called as Data types and variables ...

Interface - Object Oriented Programming : Java

Table of Content Introduction What is Interfaces in Java Why Interfaces are important Some Important Point To Be Noted Syntax Java Interface Examples Introduction :  In the dynamic world of Software Development , Object Oriented Programming (OOP's) stands as a cornerstone for building robust , scalable applications . One of the key features that empowers OOP's is the concept of interfaces. In this article , we will discuss the interfaces and exploring how they enhance code modularity and flexibility. What is Interfaces in Java?  Java interfaces provide an abstraction archiving mechanism. The Java interface can only include abstract methods; method bodies are not allowed. In Java, it is used to archive both multiple inheritance and 100% abstraction.  Stated differently, it is possible for interfaces to contain abstract variables and methods. There cannot be a method body for it.  It s...

Source File Structure in java

Welcome to world of Programming ! Whether you are a notice beginner coder, student understanding the fundamental structure of Java source file is crucial. In this article , we will unravel the mysteries behind java source file ,providing you with a solid foundation for writing clean ,efficient ,and maintainable code ,and clear the concept behind java source file and Tips . In this article we discuss this concept with Question and Answer based . Q1. In Java Program How many Class can we Take ?  Ans . In java program we can take any no of classes .and we can compile them but we cant run without Main method  Demo with code :  Q2. Which class name do we give for the Java programm?  Ans : Any Class name we can give for Java program( as like shown in above demo with code) but if we declare any class of them as Public we have to compulsory create a java program file with that class name ....

Java installation on windows

Setting  Up  JDK On Windows 11: A Step by Step Guide Introduction :  The Java Development Kit (JDK), which offers the components required to create, compile, and execute Java applications, is a vital tool for Java developers. We'll guide you through installing JDK and configuring the environment on a Windows 11 computer in this article. Download and Installation Steps : Step 1 :   Go to the download page for Oracle JDK: Visit the Oracle JDK official download page at : https://www.oracle.com/in/java/technologies/downloads/ Step 2: Accept the License Agreement: Scroll down to find the list of available JDK versions. Accept the license agreement by clicking on the checkbox next to "Oracle JDK" and choose the appropriate version for your system. Step 3 :  Download the Installer:  Click on the download link for the installer that matches your operating system. For Windows, it typically has a filename like `jdk-17.0.1_windows-x64_bin.exe`. Step 4 :  Ru...