Which of the following is a superclass of java.lang.Math class?
a) System
b) Process
c) Integer
d) Object
Created by Nancy K.A.N.
@14:52 02-Sept-2025
Which of the following is a superclass of java.lang.Math class?
a) System
b) Process
c) Integer
d) Object
Created by Nancy K.A.N.
@14:52 02-Sept-2025
An integer variable does not have a fractional component. When a floating point value is assigned to an integer ______________________ happens.
a) Shrinking
b) upcasting
c) nothing
d) truncation
Created by Nancy K.A.N.
@14:42 26-Aug-2025
A Java application can receive arguments from the command line. These arguments can later be processed according to the application requirements. The user can pass these arguments while invoking a Java application:
C:\> java MyApp hello 100 200 300 bye
hello, 100, 200, 300, bye, are the arguments passed to the application MyApp.
When Java launches the application, to which method are these arguments passed?
a) getEnv method
b) getProperties method
c) main method
d) clone method
Created by Nancy K.A.N.
@11:13 22-08-2025
Which of the following Java classes' objects is responsible for loading classes at runtime?
a) System
b) Runtime
c) ClassLoader
d) Class
Created by: Nancy K.A.N.
@19:41 20-Aug-2025
Which of the following are invalid variable names in Java?
a) !
b) $
c) _$
d) _
Created by Nancy K.A.N.
@23:09 02-Jul-2025
Which of the following methods is used to convert a Java String to an array of characters?
a) split()
b) getChars()
c) getBytes()
d) toCharArray()
Created by Nancy K.A.N.
@23:05 01-Jul-2025
Which of the Following is a Java checked exception?
a) ArithmeticException
b) ArrayIndexOutOfBoundsException
c) FileNotFoundException
d) ClassCastException
Created by Nancy K.A.N.
@12:23 15-Jun-2025
Which of the following is the root interface of Java collections?
a) Collections
b) Collection
c) Abstract Collection
d) Concurrent Collection
Created by Nancy N.
@12:38 11-Jun-2026
Which protocol will you use in a REST service?
a) SOAP
b) JMS
c) HTTP
d) SMTP
e) FTP