Programming MCQs

Java Interview Questions With Answers set-10

Pinterest LinkedIn Tumblr
This set of java interview questions includes the collection of multiple-choice questions on the fundamental of java with answers. It includes interview questions on different types of keywords used in java, java functions, method overloading, and the flow control statements used in java.

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

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

Please follow and like us:
RSS
Follow by Email
X (Twitter)
Visit Us
Follow Me
YouTube
YouTube
LinkedIn
linkedIn | Java Interview Questions With Answers set-10
Share

Author

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 8 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

1 Comment

  1. 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

RSS
Follow by Email
X (Twitter)
Visit Us
Follow Me
YouTube
YouTube
LinkedIn
Share