Java Basic Programs OOPs and Exception Handling
method overriding in java ---------------------------------- class B { void test1() { System.out.println("Test-2")…
Lorem Ipsum has been the industry's standard dummy text.
method overriding in java ---------------------------------- class B { void test1() { System.out.println("Test-2")…
Question No. 1 (Objective Questions) #include main() { int a=7; int b=a++; b=++a; } then what is the output of a=? b=? Option (1) a=8 b=9 Opt…
Introduction to C Program C is a remarkable language. Designed originally by Dennis Ritchie, working at AT&T Bell Laboratories …
C language is one of the most popular computer languages today because it is a structured, high level, machine independent language. It allo…
#include <stdio.h> main() { int n1, n2, i, gcd; printf("Enter two integers: "); scanf("%d %d", &n…
#include<stdio.h> void main() { int i,arr[20],j,no; printf("Enter size of array: "); scanf("%d",&…
From your Airtel number, give a missed call to 5999555 (Toll free) or
1.auto 2.static 3.register 4.extern auto: #include<stdio.h> void main() { auto int n=45; printf("value is:%d&…
#include <stdio.h> #include <string.h> void Reg(); void Login(); void Data(); char fn[20],ln[20],add[20],ph[20],u1[25],u2[25],pwd1[…
Features of Application 1.withdrawal 2.Deposit 3.Balance enquiry 4.Exit #include <stdio.h> int main() { int bal=2000,dep,…
printf It helps us to display message in the output. Syntax: printf("message"); Example: #include<stdio.h> main() { printf…
LOOPING Loop is used in programming to repeat a set of statements. Looping is of three types:-…
import javax.swing.JButton; import javax.swing.JFrame; import java.util.Random; public class Game123 extends JFrame implements Runnable { …
CONDITIONAL STATEMENTS: 1] if statement syntax: if(condition) { statement; } EXAMPLE: #include<stdio.h> …
1: Syntax for code: #include<stdio.h> main() { printf(""); } Example: #include<stdio.h> main() { printf(&…
#include<stdio.h> main() { int a,b; printf("Enter two numbers:"); scanf("%d%d",&a,&b); if(a>b) { …
import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; public class Registration extends JFrame implements Ac…
import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; public class LoginDB extends JFrame implements ActionLis…