Introduction To Java Questions Answers - MyCSTutorial - in - The Path To Success in Exam..
Introduction To Java Questions Answers - MyCSTutorial - in - The Path To Success in Exam..
nolata
Katalon
https://mycstutorial.in/introduction-to-java-questions-answers/ 2/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
Answer: A Java compiler that translates Java Source Code into Java
Bytecode (a highly optimized set of instructions). Like other language
compilers (c, c++), it does not translate Java code to machine language
code.
Que 7. What is Java Interpreter / JVM?
Answer: Java Interpreter is known as JVM (Java Virtual Machine). Java
Interpreter translates the Java bytecode into to the respective machine
code as per the operating system and then executes it.
Que 8. What is the need of JVM? [SQP]
Answer: When the bytecode (also called a Java class file) is to be run on
a computer, a Java interpreter, called the Java Virtual Machine (JVM),
translates the bytecode into machine code and then executes it.
Que 9. Why java is platform independent and portable? [CBSE 2018]
Answer: The advantage of JVM is that once a programmer has compiled
a Java program into bytecode, it can be run on any platform (say
Windows, Linux, or Mac) as long as it has a JVM running on it. This
makes Java programs platform independent and highly portable.
Que 10. Write the full from of IDE? What is IDE?
Answer: IDE stands for Integrated Development Environment. IDE is an
integrated development environment, which combines the text editor
and java compiler. It simplifying writing, compiling and executing java
programs.
https://mycstutorial.in/introduction-to-java-questions-answers/ 3/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 4/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 5/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
Answer: println() and print() function of java is use to print the message
and value of variable.
Que 19. Differentiate between System.out.print( ) and
System.out.println().
Answer: System.out.print() is print the message and leave the cursor
in the same line, while System.out.println() is print the message and
move the cursor to the next line.
Que 20. Which symbol is used in jave at the end of the statement?
Answer: The semicolon ; at the end of the statement. All Java
statements must end with a semicolon.
Que 21. ________ translates the byte code into machine code and
then executes it. [SQP]
Answer: Java Virtual Machine (JVM)
Que 22. _______________ is a special method that every Java application
must have. [SQP]
a. Getter b. Setter c. Main d. Default
Answer: Main
Interior Designing
Open
Institute
IIFT Bhopal
https://mycstutorial.in/introduction-to-java-questions-answers/ 6/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 7/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
Que 27. Why main is a special method in the java program? [SQP]
Answer: Main is a special method that every Java application must have.
When you run a program, the statements in the main method are the
first to be executed
Que 28. Why a Compiler is needed?
Answer: As you are already aware, a computer only understands its
own language called “machine language”. Therefore, a compiler is
needed to translate high level program code into machine language
code that will be understood by the computer.
Que 29. Why we need to compile a program on every platform like
Windows or Mac before execution of Program?
Answer: All platform/OS (windows, Mac) has different instruction sets,
compiler is always generating the executable code as per platform. So it
is required to compile every program before execution on each platform
separately.
Que 30. What is the extension of Java Program File?
Answer: .java
Que 31. What is the extension of Java Bytecode File or Class File?
Answer: .class
https://mycstutorial.in/introduction-to-java-questions-answers/ 8/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 9/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
(ii) Single quote ‘’ is used for character constant, So Hello World must be
enclosed with double quotes. “”.
System.out.pirntln(“Hello World”);
Que 36. Is Java a case sensitive language? Justify your answer. [CBSE
2019]
Answer: Yes, Java is a case sensitive language.
In java, ‘A’ and ‘a’ both values are treated as different because both have
different ASCII / UNICODE value.
Que 37. Write any three applications where java is used. [CBSE 2017
COMPT]
Answer: Three applications are – Database applications, Desktop
applications,
Web based applications, Mobile applications, and Games, etc.
Que 38. Java programs are [CBSE 2017]
(a) Faster than others
(b) Platform independent
(c) Not reusable
(d) Not scalable
https://mycstutorial.in/introduction-to-java-questions-answers/ 10/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
Que 40. Which one of the following statements is true for Java ?
[CBSE 2017]
(a) Java is object oriented and interpreted.
(b) Java is efficient and faster than C.
(c) Java is the choice of everyone.
(d) Java is not robust.
Answer: (a) Java is object oriented and interpreted.
Que 41. OOP features are [CBSE 2017]
1. Increasing productivity
2. Reusability
https://mycstutorial.in/introduction-to-java-questions-answers/ 11/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 12/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
Que 44. Write any four best features of Java. [CBSE 2019 COMPT]
Answer: Four best features of Java are: –
(a) Simple
(b) High Level Object Oriented Programming Language
(c) Highly Portable
(d) Platform Independent
(e) Secured Language
(f) Architectural Neutral
(g) Robust
Related Posts
https://mycstutorial.in/introduction-to-java-questions-answers/ 13/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 14/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 15/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 16/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 17/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 18/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 19/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 20/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 21/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
Recent Posts
Class 10 Employability Skills Unit 2 Self Management Skills – II Study Material Notes
Class 9 Employability Skills Question Answer based on NCERT Textbook
Class 9 Employability Skills Multiple Choice Questions MCQ based on NCERT Book
Class 9 Employability Skills NCERT Textbook Solution
Class 9 Employability Skills Unit 5 Green Skills NCERT Book Solution
https://mycstutorial.in/introduction-to-java-questions-answers/ 22/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
https://mycstutorial.in/introduction-to-java-questions-answers/ 23/25
6/26/23, 3:11 PM Introduction to Java Questions Answers - MyCSTutorial.in | The Path to Success in Exam...
Search …
MyCSTutorial is working for free education for all. We are try to provide educational aids free of cost,
study material, sample papers and so many other things also.
Our only moto to help the students without any trouble or cost.
Follow Us
Quick Links
Computer Science
Informatics Practices
Information Technology
Artificial Intelligence
Contact Info
Phone
+91 8221909045
Email
info.mycstutorial@gmail.com
https://mycstutorial.in/introduction-to-java-questions-answers/ 25/25