Programming MCQs

Java MCQ Interview Questions With Answers set-10

Google+ Pinterest LinkedIn Tumblr
1. Java was developed by the companyA) Sun Micro systems

Image representing Sun Microsystems as depicte...
Sun Micro systems Image CrunchBase

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 in executing a Java program and their purposes?

A) Java Compiler

B) Java Interpreter

C) Java Pre-processor

D) Directive Pre-processor


6. Method overloading is one of the way that Java supports …………

A) encapsulation

B) class

C) inheritence

D) polymorphism

7. Java support RMI. What does this RMI stands for?

A) Random Memory Interface

B) Remote Method Invocation

C) Random Method Invocation

D) Remote Memory Interface

8. Which of the following represent 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 stands 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

 

For other more Multiple Choice Questions (MCQs): Click Here

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 5 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

Write A Comment