EduLearn - Online Education Platform

Welcome to EduLearn!

Start learning today with our wide range of courses taught by industry experts. Gain new skills, advance your career, or explore new interests.

Browse Courses

What is string in java

class stringconcept { public static void main(String args[]) { String a=”Tutor”; String b=”Tutor”;   System.out.println(“A=” +a); System.out.println(“B=” +b);   System.out.println(“A Hashcode=” +a.hashCode());// a and b shares the same address System.out.println(“B Hashcode=” +b.hashCode());   } }   //List of strings predefined methods:   class stringconcept { public static void main(String args[]) { String a=”Tutor”; String b=”Tutor”; […]

Simple Java program to find the maximum and minimum elements in an array

Here’s a simple Java program to find the maximum and minimum elements in an array public class MinMaxInArray { public static void main(String[] args) { int[] arr = {12, 5, 7, 20, 3, 15};   int max = arr[0]; int min = arr[0];   for (int num : arr) { if (num > max) max […]

Method overriding and polymorphism in java

Polymorphism:   poly–>many   class customer { void Fillform(String name,int mob,String email) { ——– ——— } void Fillform(String name,int mob1,int mob2,String email) { ——– ——— } } class Bank { public static void main(String args[]) { Customer a=new Customer(); a.Fillform(“a”,123,"abc@gmail.com”);   Customer b=new Customer(); b.Fillform(“b”,123,456,"def@gmail.com”); }} ———————— –>occur at compile time(Method overloading)   —>occur at […]

What is final value in java

//Final class==> //final class cannot be extended(no any subclass can able to inherit it) Example program import java.io.*; final class Shape { void draw() { System.out.println(“Drawing shape..”); } }   class Finalmethod { public static void main(String args[]) { Shape obj=new Shape(); obj.draw(); } }

Java program practice questions

Here’s a simple Java program to calculate the cost price of one item, based on total selling price and profit import java.util.Scanner; public class CostPriceCalculator { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // Input total selling price and profit System.out.print(“Enter total selling price of 15 items: “); int sellingPrice = […]

Java simple program for practice

  Here’s a simple Java program that accepts the  number of late days and calculates the fine or displays the membership cancellation message: import java.util.Scanner;   public class LibraryFine { public static void main(String[] args) { Scanner sc = new Scanner(System.in);   // Input number of late days System.out.print(“Enter number of days late: “); int […]

Java Reserved Keywords

Java Reserved Keywords: Java has a set of keywords that are reserved words that cannot be used as variables, methods, classes, or any other identifiers. For example: break, char, double, final Literal: Any constant value which can be assigned to the variable is called literal/constant. Literals in Java is a synthetic representation of boolean, numeric, […]

A program to do arithmetic operations based on the choice for any 2 integers

Here’s a Java program to perform basic arithmetic operations (+, -, *, /, %) based on the user’s choice for any two integers. import java.util.Scanner; public class ArithmeticOperations { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // Input two integers System.out.print(“Enter first number: “); int a = sc.nextInt(); System.out.print(“Enter second number: […]

Calculating marks by using java

class Marks { public static void main(String args[]) { int m1,m2,m3,m4,m5,total; float avg; System.out.println(“enter 5 marks”); Scanner s=new Scanner(System.in); m1=s.nextInt(); m2=s.nextInt(); m3=s.nextInt(); m4=s.nextInt(); m5=s.nextInt(); total=m1+m2+m3+m4+m5; avg=total/5; System.out.println(“Total=”+total); System.out.println(“Average=”+avg); if(m1>=35 && m2>=35 && m3>=35 && m4>=35 && m5>=35) { System.out.println(“Result=pass”); if(avg>=90 && avg<=100) { System.out.println(“Grade A”); } else if(avg>=80 && avg<=89) { System.out.println(“Grade B”); } else […]

EduLearn - Online Education Platform

Welcome to EduLearn!

Start learning today with our wide range of courses taught by industry experts. Gain new skills, advance your career, or explore new interests.

Browse Courses

Popular Courses

[Course Image]

Introduction to Programming

Learn the fundamentals of programming with Python in this beginner-friendly course.

12 Hours Beginner
[Course Image]

Data Science Essentials

Master the basics of data analysis, visualization, and machine learning.

20 Hours Intermediate
[Course Image]

Web Development Bootcamp

Build modern websites with HTML, CSS, JavaScript and popular frameworks.

30 Hours Beginner
[Course Image]

Digital Marketing Fundamentals

Learn SEO, social media marketing, email campaigns and analytics.

15 Hours Beginner
Educational Website Footer