Top 20 solved JAVA operators based MCQS
ฝัง
- เผยแพร่เมื่อ 8 ต.ค. 2024
- this video will help you to prepare for Java SE 8 Programmer OCA Certification, if you are preparing for it. It contains mcqs that will brush up and make your concepts more strong.
-------------------
if you want to know more about me read further
I am new to youtube if you will subscribe it will make me HAPPY ! I create content about engineering topics.
like my content. Drop a hello on social media (any collaboration)
INSTAGRAM (private) - / diyaw_
INSTAGRAM (public) - / bewitch_gram
FACEBOOK - / diya.wadhwani1
LINKEDIN - / diyaw
GMAIL - justmoonthings62@gmail.com
java programming
java programming for interview
java programming examples
java programming interview questions
java programming language
beginning with java programming
java programming for beginners
java programming interview questions and answers
java programming questions and answers,
java programming exercises,
java programming mcq,
help with java programming,
interview questions,
interviews,
interviews questions and answers,
interview preparation,
technical mcq questions,
technical mcq,
tcs technical mcq questions with answers,
technical mcq questions for cse,
technical mcq questions on java,
technical mcq for cse,
technical mcq questions in java,
technical mcq questions and answers,
java technical mcq questions and answer,
technical mcq questions on java,
java technical mcq questions and answers,
technical mcq java,
technical mcq in java,
java technical test mcq
technical mcq questions in java
technical mcq questions java
technical mcqs on java
technical mcq on java
it covers mcqs on following topics
java mcqs on string
java programming mcqs
java theory based mcqs
java mcqs on operators
java mcqs on data types
java mcqs on ternary operator
java mcqs on string
java mcqs on object oriented programming
java mcqs on try- catch block
java mcqs on run time error
Question 4:
int i = 10.0;
Its incorrect as by default decimal value is double and we're attempting to assign to int type which (higher byte size to lower byte size). Which will give Compile Time error as possible lossy conversion/ possible loss of precision.
Hence options d is also incorrect.
8 th question i got possiable lossy conversion from double to long,I think double is higher range not depending on type , class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
long a= 10;
double b=20;
long c=a+b;
System.out.println(c);
}
}
For Question 18: They are reserved words (for the future use). The true false and null − True, false and null represents certain values in Java, they are used as literals. They are not considered as keywords
Q4, option d) is not correct also because 10.0 is double and not int so , response are b) and d)
I am gona share this to my friends who is preparing for the interviews.
You made me Smile :)
Q:8---Falae
Q.16 smile😁😁😁😍😍
Q8) is wrong! Type mismatch: cannot convert from double to long
Q18) also wrong !! true and false are not keywords in java.
please check
Thanks, you know! 😆
Great content. Keep it up.
Thankyou
#keepgoing
Thankyou
thank you again
Thank you too!
18 answer is wrong
D
Q. 4 float a=10; also wrong, correct is float a=(10)f;
float a=10; is correct but float a=10.0 must be incorrect;
A
55 more subscribers needed to earn money from this channel.
can't wait ;)