Java Quiz (Set 1) Java Quiz (Set 1) 1 / 10 What is the size of byte variable? 8 bit 16 bit 32 bit 64 bit 2 / 10 What of the following is the default value of an instance variable? null 0 Depends upon the type of variable Not assigned 3 / 10 What of the following is the default value of a local variable? null 0 Depends upon the type of variable Not assigned 4 / 10 Can we compare int variable with a boolean variable? True False 5 / 10 Static functions can be accessed using null reference. True False 6 / 10 Objects are stored on Stack. True False 7 / 10 Primitive variables are stored on Stack. True False 8 / 10 What is a class in java? A class is a blue print from which individual objects are created. A class can contain fields and methods to describe the behavior of an object. class is a special data type. class is used to allocate memory to a data type. none of the above. 9 / 10 Which of the following is not a keyword in java? static Boolean void private 10 / 10 What is correct syntax for main method of a java class? public static int main(String[] args) public int main(String[] args) public static void main(String[] args) None of the above. Your score isThe average score is 0% 0% Restart quiz