McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2024
→
Bachelor of Computer Applications (BCA)
→
Java Programming
→
What is the size of int data type in jav...
Q.
What is the size of int data type in java?
A.
1 bytes
B.
2 bytes
C.
4 bytes
D.
8 bytes
Answer» C. 4 bytes
1.5k
0
Do you find this helpful?
14
View all MCQs in
Java Programming
Discussion
No comments yet
Login to comment
Related MCQs
In RMI program the following example shows the, import java.rmi.*; public interface Adder extends Remote{ public int add(int x,int y)throws RemoteException; }
State true or false (i) Java RMI supports distributed objects written entirely in java (ii) Java RMI makes use of stubs and skeleton (iii) In Java RMI an object registers itself with a media server (iv) IDL is interface declaration language
Match the following (a) Datagram Socket (i) UDP connection (b) URL (ii) provides a necessary framework of debugging java programs (c) java.net (iii) makes it possible to communicate over a network with java programs (d) sun.tools.debug (iv) is a java object that represents WWW address
Given the following code fragment:~~~int A[];int i = 0;A = new int A[4];~~~while (i < 4)~~~{~~~A[i] = 10;~~~i = i + 1;~~~}~~~What is the value of A[3]?.
What will be the content of array variable table after executing the following code? for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { if (j == i) { table[i][j] = 1; } else { table[i][j] = 0; } } }
Given the following code:~~~class Base { int x = 10; }~~~class Derived extends Base~~~{ int x = 20; }~~~Base b = new Base();~~~Derived d = new Derived ( );~~~Base bd = new Derived(); The statement~~~System.out.println(b.x + " " + d.x + " " + bd.x);~~~will produce the output
What is the value of k after the following code fragment?~~~int k = 0;~~~int n = 12~~~while (k < n)~~~{~~~k = k + 1;~~~}
What is different between a Java applet and a Java application?
What is different between a Java applet and a Java application?
Java enables the creation of cross-platform programs by compiling into an intermediate representation called Java ____________.