Write a java program to design a class Mystring having data member of type String add member function to achieve following task.

JAVA-6 Q.6 Write a java program to design a class Mystring having data member of type String add memberfunction to achieve following task. Solution :-  import java.util.Scanner; class MyString { private String str; public MyString(String str) { this.str = str; } // Method to reverse the string public String reverseString() { return new StringBuilder(str).reverse().toString(); } […]

Write an application that execute two Threads. One thread display “BCA” every 1000 milliseconds and the order displays “MCA” every 3000 milliseconds. Create the threads by extending the thread class.

JAVA-4 Q.4 Write an application that execute two Threads. One thread display “BCA” every 1000 milliseconds and the order displays “MCA” every 3000 milliseconds. Create the threads by extending the thread class. Solution :-  class BCAThread extends Thread { public void run() { try { while (true) { System.out.println(“BCA”); Thread.sleep(1000); // 1000 milliseconds = 1 […]

Write a java program to. create and display Singly linked list and perform following task.

JAVA-3 ASSIGNMENT Q.3 Write a java program to. create and display Singly linked list and perform following task. Insert node at specific position. Delete node from specific position. Solution  :-  import java.util.Scanner; class Node { int data; Node next; public Node(int data) { this.data = data; this.next = null; } } class SinglyLinkedList { private […]

Write a java program to create EMPLOYEE class with name, age and salary data members. Take input (data) from user and create minimum 5 objects of employee class. Display all employees data in ascending order of salary.

JAVA-2 Q.2 Write a java program to create EMPLOYEE class with name, age and salary data members. Take input (data) from user and create minimum 5 objects of employee class. Display all employees data in ascending order of salary. Solution :-   import java.util.*; class Employee implements Comparable { String name; int age; double salary; // […]

Unit-5: Cursors and Exception Handling:

Cursors and Exception Handling: Cursors and Exception Handling: 5.1 Concepts of Cursors 5.1.1 Types of cursors (Implicit & Explicit ) 5.1.2 Declare, open, fetch and close cursors. 5.2 Cursor Attributes : (%FOUND,%NOTFOUND,%ISOPEN,%ROWCOUNT) 5.3 Exception Handling in PL/SQL 5.3.1 Types of Exceptions: 5.3.1.1 Named System Exceptions 5.3.1.2 Unnamed System Exceptions 5.3.1.3 User-defined Exceptions 5.3.1.4 User Defined […]

Unit-4 : Iterative Statements

Unit-4 : Iterative Statements Unit-4 : Iterative Statements 4.1 Iterative statements : 4.1.1 Loop..End Loop 4.1.2 For.. Loop 4.1.3 While Loop 4.1.4 EXIT Loop 4.1.5 Continue Iterative Statements in PL/SQL. Introduction. Iterative statements in PL/SQL allow a set of statements to be executed repeatedly based on a condition. These loops help in automating repetitive tasks, […]

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.