• Increase font size
  • Default font size
  • Decrease font size

Java Interview Question and answer

AddThis Social Bookmark Button

1.) What is the value stored in result after executing the following line in a program?

      Result = 6/2*3;

A.) 7

B.) 9

C.) 11

D.) 13

View Answer

Answer: Option B

2.) The method setLabel can be used with what type of Object?

A.) String

B.) Int

C.) TextField

D.) DoubleField

View Answer

Answer: Option D

3.) A function is:

A.) An entity that receives inputs and outputs

B.) A way of storing values

C.) A sequence of characters enclosed by quotes

D.) A kind of computer

View Answer

Answer: Option A

4.) Consider

public class MyClass{

public MyClass() {/*code*/}

// more code...


A.) MyClass mc = new MyClass();

B.) MyClass mc = MyClass();

C.) MyClass mc = MyClass;

D.) MyClass mc = new MyClass;

View Answer 

Answer: Option  A

5.) Which is a valid keyword in java?

A.) Float

B.) String

C.) Interface

D.) Unsigned

View Answer 

Answer: Option  C

  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  Next 
  •  End 
  • »

Oracle Certification


The Oracle Certification Program is a professional certification program offered by the Oracle Corporation. There are three levels of Oracle Certification in several disciplines: Oracle Certified Associate (OCA), Oracle Certified Professional (OCP), and Oracle Certified Master (OCM).

Java Certification


Sun Certified Professional (SCP) is a professional certification program by Sun Microsystems, a subsidiary of Oracle Corporation. There are two levels of java Certification in several disciplines: Sun Certified Java Associate (SCJA), Sun Certified Java Programmer (SCJP), and Sun Certified Java Developer (SCJD)

Red Hat Certification


The Red Hat Certification Program is Red Hat's professional certification program for Red Hat and general Linux related skills such as system administration on Red Hat Enterprise Linux Red Hat Certified Technician (RHCT)  and Red Hat Certified Engineer (RHCE)