• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

Data Types and Variables

Data Types and Variables
Size of int in Java is

Depends on execution environment
16 bit
32 bit
64 bit

ANSWER DOWNLOAD EXAMIANS APP

Data Types and Variables
What is the output of the following program?public class Test{static int x = 10 ; public static void main(String[] a){ Test test = new Test( ) ; Test test1 = new Test( ) ; test.x += 1 ; System.out.println( test.x + test1.x ) ; }}

Compilation Error
Throws Exception
22
20
21

ANSWER DOWNLOAD EXAMIANS APP

Data Types and Variables
In Java byte, short, int and long all of these are

signed
unsigned
Both of the above
None of these

ANSWER DOWNLOAD EXAMIANS APP

Data Types and Variables
Size of float and double in Java is

32 and 64
32 and 32
64 and 32
64 and 64

ANSWER DOWNLOAD EXAMIANS APP

Data Types and Variables
In Java, the word true is ................

A Java keyword
Same as value 1
Same as value 0
A Boolean literal

ANSWER DOWNLOAD EXAMIANS APP

Data Types and Variables
The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC );

Prints 2.5
Raises an exception
None of these
Rraises an error as STATIC is used as a variable which is a keyword

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON Data Types and Variables

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑