Which of the following are legal variable types in java?
Correct Answer: String
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Which code snippet below generates random numbers between 0 and 0.5?
A class has two method implementations that will cause a compiler error. What is the reason for the compiler error? public static void flexiPrint(Object... data){} public static void flexiPrint(Object[] data){}
Which statement about the given code is true? import java.io.IOException; public class Test110 { public static void main(String[] args) { throwEx(new IOException('unchecked')); } static void throwEx(Exception e) { Test110. _throw(e); } static void _throw(Exception e) throws E { throw (E) e; } }
Output of the given program? public class Test128 { public static void main(String[] args) { A a = new A2(); B b = new B2(); System.out.println(a.a + b.b); } } class A { int a = 1; } class A2 extends A { int a = 2; } class B { public int b = 1; } class B2 extends B { public int b = 2; }
Output of following code:- int a = 5; int b = a; a*=2; b+=1; System.out.println(a); System.out.println(b);
The PipedInputStream and PipedOutputStream classes can be used to read and write data simultaneously?
A stream is a sequence of data.In Java a stream is composed of?
The PrintStream class provides methods to?
In Advanced JDBC Data types which have defined new data types that are commonly referred to as SQL3 types?
Which list gives a quick way to determine which Connection method is appropriate for creating different types of SQL statements?