Java Development
Ir al canal en Telegram
Learn something new in quality Instagram Link Java_Quizs https://instagram.com/java_quizs?utm_medium=copy_link
Mostrar másEl país no está especificadoTecnologías y Aplicaciones34 716
2 283
Suscriptores
Sin datos24 horas
Sin datos7 días
Sin datos30 días
Archivo de publicaciones
2 283
/* Question - 16
🚨 Interview Important Question 🚨
Java Program Swapping Of Two Numbers Using Bitwise Operator's
*/
package ABC;
import java.util.*;
public class Main {
public static void main(String[] args) {
int Num1,Num2;
Scanner S = new Scanner(System.in);
System.out.println("Enter Value Num1:");
Num1 = S.nextInt();
System.out.println("Enter Value Num2:");
Num2 = S.nextInt();
// Condition
Num1 = Num1 ^ Num2;
Num2 = Num1 ^ Num2;
Num1 = Num1 ^ Num2;
// After Swapping
System.out.printf("Value Of Num1,Num2 Are :%d %d",Num1,Num2);
}
}
2 283
/* Question - 15
🚨 Interview Important Question 🚨
Java Program Swapping Of Two Numbers Without Using Third Variable
*/
package ABC;
import java.util.*;
public class Main {
public static void main(String[] args) {
int Num1,Num2;
Scanner S = new Scanner(System.in);
System.out.println("Enter Value Num1:");
Num1 = S.nextInt();
System.out.println("Enter Value Num2:");
Num2 = S.nextInt();
// Condition
Num1 = Num1 + Num2;
Num2 = Num1 - Num2;
Num1 = Num1 - Num2;
// After Swapping
System.out.printf("Value Of Num1,Num2 Are :%d %d",Num1,Num2);
}
}
2 283
#Quiz_Java (Question - 93)
Which of the following type is signed?
2 283
#Quiz_Java (Question - 92)
What is the default value of a Boolean variable?
2 283
I Request !!! Please Share Our
Telegram Channel To Your Friends.
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Forward This Msg To Your Friends
💫Thank You Happy Learning 💫
https://t.me/java_quizss
2 283
Hello Everyone !!!
Cse Department Hand Written Notes Link Is Not Working.So,We Uploaded Zip File In Comment's (Zip File Size Is About 800Mb).So,We Going To Upload Pdf's Also Soon Which Are In Zip File.
Thank You 💫💫💫
2 283
Solve This Three Tricky Questions If U Are Good At Java 😌😌😌
https://www.instagram.com/p/CKtauUsANTf/?utm_medium=copy_link
2 283
I Request !!! Please Share Our
Telegram Channel To Your Friends.
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Forward This Msg To Your Friends
💫Thank You Happy Learning 💫
https://t.me/java_quizss
2 283
⚠️Premium Courses for free! 👇
Course available on following topics 👇
1. Python Programming
2. Java Programming
3. Web Development
4. Data Science
5. Artificial Intelligence
6. Machine learning
7. C++ Programming
8. And much more
Don’t miss it 💯
Register here 👇
https://www.edyoda.com/register?invite_code=LEARNTOCODE&aff=6
👆👆👆👆👆👆👆
2 283
#Quiz_Java (Question - 91)
What is the size of a byte variable (in bytes)?
2 283
#Quiz_Java (Question - 90)
How much memory does short data type consume (in bytes)? Note :- 1byte = 8bits
2 283
/* Question - 14
Java Program To Check Whether A Person Is Eligible For Voting Or Not
*/
package ABC;
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner s1 = new Scanner(System.in);
System.out.println("Enter Your Age:");
int age = s1.nextInt();
if(age>=18)
{
System.out.println("ELIGIBLE For Voting");
}
else
{
System.out.println("NOT ELIGIBLE For Voting");
}
}
}
2 283
#Quiz_Java (Question - 89)
Java bytecode is saved as ………… file.
2 283
/* Question - 13
SIMPLE INTEREST AND COMPOUND INTEREST
*/
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("enter the principal amount p : ");
double p=sc.nextDouble();
System.out.println("enter the time in months t : ");
double t=sc.nextDouble();
System.out.println("enter the interest r:");
double r=sc.nextDouble();
double si=(p*t*r)/100;
System.out.println("the simple interest is : "+si+"");
double comp=p*Math.pow(1.0+r/100.0,t)-p;
System.out.println("the compound interst is : "+comp+"");
}
}
2 283
Best Sites For Interview Preparation
⚡ Visit Instagram Java_Quizs ⚡
https://www.instagram.com/p/CZCOtFtljVF/?utm_medium=copy_link
👇👇👇👇👇👇👇👇👇👇👇👇
What Are The Sites U Perfer For Interview Preparation Comment Below
