Home
About Us
Contact Us
Privacy Policy
Search
Home
→
Java concepts and its programming
→
What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ?
Related MCQs
Process of creating exact copy of the existing object is called__________?
If method have same name as class name and method don’t have any return type then it is known as__________?
Which metrhods are utilized to control the access to an object in multi threaded programming ?
The smallest integer type is and its size is__________ bits?
Which keyword is used while using interface__________?
Super is the predefined__________?
The class java.sql.Timestamp is associated with __________?
Which of the following statements about arrays is syntactically wrong ?
The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
Smallest individual unit in java program is known as__________?
Java is known as __________ stage language?
Which command is used for interpretation of java program__________?
Which type of inheritance is not supported by java__________?
Thread class is available in__________?
The JDBC-ODBC bridge is__________?
Why we use array as a parameter of main method__________?
Methods that have same name, but different Parameter list and different definition known as__________?
How many keywords are available in java ?
How many primitive data types are there in Java ?
Program which executes applet is known as__________?
What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ?
Size of float and double in Java is__________?
All collection classes are available in __________?
Automatic type conversion in Java takes place when__________?
Interfaces helps in which type of inheritance ?
A package is a collection of__________?
Which method is used to perform DML statements in JDBC ?
pow () is associated with which class ?
_________ allows java code to run in the JVM to call and be called by native applications ?
Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
The following fraction of code double STATIC = 2.5 ; System.out.println( STATIC ); ?
All raw data types should be read and uploaded to the database as an array of__________?
String is the predefined ?
Executable applet is__________?
Which among following classes is not part of Java’s collection framework ?
Which driver is called as thin-driver in JDBC ?
Minimum threads in a program are__________?
Suspend thread can be revived by using ?
In Java byte, short, int and long all of these are __________?
Which method can’t be overidden ?
In java, gc() method is available in which package ?
Converting a primitive type data into its corresponding wrapper class object instance is called __________?
In Java, the word true is __________?
Hot java is__________?
What is meaning of jar ?
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
javah stands for ?
Which method of the Applet class displays the result of applet code on screen ?
Which of the following command is used to compile the Java program ?
Size of int in Java is__________?
Which method executes only once ?
What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ?
A. 0
B. 1
C. 2
D. 3
Correct Answer:
0
✔
Last Updated:
April 18, 2019