Question: Questions 1 Name the eight primitive data types in Java. Then, briefly define a reference data type with an example. Marks 1 2 What will
Questions
Name the eight primitive data types in Java. Then, briefly define a reference data type with an example.
Marks
What will be the result of the following expression in Java?
Marks
String Comparison: Consider the following strings:
Marks
String Hello, hello, HELLO;
What will be the results of the following comparisons?
a acompare Tob
b cequalsa
c bequalsIgnoreCasec
d acompare
What is the output of the following Java code fragment? Assume other parts of the code are correct and the code runs successfully
Marks
public class Main
public static void mainString args
int num ;
int num;
double num ;
String text "something";
System.out.printlnnum num;
System.out.printlinnumint Math.sqrtnum;
System.out. printlntextsubstring length ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
