1. Java was developed by the companyA) Sun Microsystems
B) Microsoft
C) Micro tech
D) IBM
2. What is the file extension of compiled java program?
A) .class
B) .java
C) .css
D) .html
3. ……………… keyword is used to invoke the current object.
A) New
B) That
C) This
D) Me
4. Which of the function is used to convert string to Number in java program?
A) to Number()
B) conString()
C) valueOf()
D) toString()
5. What are the part of executing a Java program and its purposes?
A) Java Compiler
B) Java Interpreter
C) Java Pre-processor
D) Directive Pre-processor
Table of Contents
Read Also: MCQ on Java Programming Language Fundamental
6. Method overloading is one of the ways that Java supports …………
A) encapsulation
B) class
C) inheritence
D) polymorphism
7. Java support RMI. What does this RMI stand for?
A) Random Memory Interface
B) Remote Method Invocation
C) Random Method Invocation
D) Remote Memory Interface
8. Which of the following represents legal flow control statements?
A) break;
B) break();
C) continue(inner);
D) exit();
9. The keywords reserved but used in the initial version of Java are
A) union
B) const
C) inner
D) goto
10. What is the default return type of main() ..
A) void
B) double
C) float
D) int
Answers:
1. Java was developed by the company
A) Sun Micro systems
2. What is the file extension of compiled java program?
A) .class
3. ……………… keyword is used to invoke the current object.
C) This
4. Which of the function is used to convert string to Number in java program?
C) valueOf()
5. What are the part in executing a Java program and their purposes?
A) Java Compiler
6. Method overloading is one of the way that Java supports …………
D) polymorphism
7. Java support RMI. What does this RMI stand for?
B) Remote Method Invocation
8. Which of the following represent legal flow control statements?
A) break;
9. The keywords reserved but used in the initial version of Java are
A) union
10. What is the default return type of main() ..
D) int
Read Next: MCQ on Java Programming With Answers set-11
1 Comment
Hello There,
Thanks for highlighting this and indicating about Java MCQ Interview Questions With Answers where more study and thought is necessary.
I started to program with C and have some programming in JAVA. However, I have a small understanding problem with the following below.
I understand that at the command “while (isspace(ch=getc(in)))” the programm reads till if founds a character that is either a ” or a blank. This symbol is assigned to the variable delim.
Is it then correct to say that the program starts again at the same position as before and continues to read the string till “((ch=getc(in))!=delim)” is fulfilled?
THANK YOU!! This saved my butt today, I’m immensely grateful.
Gracias,
Reena