Skip to main content

Posts

Featured

Java program on Custom Exceptions, Email application example

PROGRAM: import java.util.Scanner; public class EmailApplication {     public static void main(String[] args) {         String username, password;         Scanner sc = new Scanner(System.in);         System.out.println("Enter username and password to create account");         System.out.print("Username: ");         username = sc.next();         System.out.print("Password: ");         password = sc.next();         Account acc = new Account(username, password);         System.out.println("Account created successfully!");         acc.login();     } } class Account {     String username, password;     public Account(String username, S...

Latest Posts

Java program on Custom Exceptions, Banking Application Example

Java program on Exceptions with getMessage() method Example 2

Java program on exceptions with printStackTrace() method Example 2

Java program on Exceptions with printStackTrace() method

Java program on Manual Exceptions with 'throw' keyword

Java program on Exceptions with getMessage() method

Java program on Daemon thread

Java program on Multithreading by implementing Runnable Example 5

Java program on Multithreading by implementing Runnable Example 4

Java Program on MultiThreading by implementing Runnable Example 3

Java Program on MultiThreading by implementing Runnable Example 2

Java program on Multithreading by implementing Runnable Example 1

Java program on Multithearding by extending Thread Class Example 5

Java Program on Multithreading by extending Thread class Example 4

Java program on MultiThreading by extending Thread class Example 3

Java Program on Multithreading by extending Thread class Example 2

Java program on MultiThreading by extending Thread class Example 1

Java program on abstraction, shapes example