What will the following code result in? int num = 6.7;

Practice More Questions From: Quiz 01 – Intro to Java & The Java Language

Q:

Choose the appropriate data type for this value: 5.5

Q:

What will the following code result in? int num = 6.7;

Q:

Which of the following types is not a primitive data type in Java?

Q:

Which statement is correct in syntax?

Q:

What will the code below output? System.out.println(5 > 4);

Q:

What’s the correct syntax for Java’s main method?

Q:

If you want your condition to depend on both conditions being true, what’s the proper notation?

Q:

If you want to define a char first, and then a String, what’s the correct type of quotation marks (and order) to use?

Q:

What will the code below output? String a = “Hello”; char b = ‘!’; int c = 0; System.out.println(a + b + c);

Q:

What is used in Java to surround code blocks?

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments