Recent questions and answers in Java

610
views
2 answers
1 votes
In Java, for ensuring the persistence property, the class must implements:Serializable InterfaceUtilization InterfaceThreadable InterfaceRecognizable Interface
705
views
1 answers
1 votes
In Java, the Dynamic Array are known as :VectorsCycleRemoteKubernotos
421
views
1 answers
1 votes
Which of the following are two main types of overloading in Java?Overloading and linkingOverriding and linkingReusability and data-hidingOverloading and Overriding
489
views
1 answers
1 votes
In the given program:class Dialog1 { public static void main(String args[]) { Frame f1=new Frame("INDIA"); f1.setSize(300,300); f1.setVisible(true); FileDialog d=new File...
479
views
1 answers
1 votes
Which of the following Interface is not supported by $\text{JDBC}$ for connecting to Database in Java Programming language?Statement InterfacePrepared Statement Interface...
480
views
1 answers
1 votes
The static keyword is used in public static void main() declaration in Java:To enable the $\text{JVM}$ to make call to the main(), as class has not been instantiatedTo en...
420
views
1 answers
1 votes
What is the output of the following program?abstract class sum { public abstract int sumOfTwo(int n1, int n2); public abstract int sumOfThree(int n1, int n2, int n3); pub...
428
views
1 answers
1 votes
Which of the following construct is not supported by Java Server Pages?$\text{JSP}$ Directives$\text{JSP}$ Scriptlets$\text{JSP}$ Actions$\text{JSP}$ Reaction
4.3k
views
3 answers
1 votes
What is the output of the following JAVA program?class simple { public static void main(String[ ] args) { simple obj = new simple(); obj.start(); } void start() { long []...
2.1k
views
2 answers
1 votes
What is the output of the following JAVA program?public class Good { private int m; public Good (int m){this.m=m;} public Boolean equals (Good n) {return n.m==m;} public ...
1.1k
views
1 answers
0 votes
Which of the following is a platform free language?JAVACAssemblyFortran
1.0k
views
1 answers
0 votes
752
views
1 answers
0 votes
Earlier name of Java programming language was:OAKDNetbeanEclipse
6.9k
views
1 answers
1 votes
Which of the following is/are true about packages in Java? Every class is part of some package.All classes in a file are part of the same package.If no package is specif...
33.7k
views
1 answers
2 votes
Which of the following is false about abstract classes in Java?If we derive an abstract class and do not implement all the abstract methods, then the derived class should...
11.0k
views
1 answers
2 votes
Which of the following is true about interfaces in Java? An interface can contain following type of members. $\dots$ public, static, final fields(i.e., constants)$\dots$...
3.9k
views
3 answers
5 votes
In Java, after executing the following code what are the values of x, y and z?int x,y=10; z=12;x=y++ + z++;x=22, y=10, z=12x=24, y=10, z=12x=24, y=11, z=13x=22, y=11, z=1...
2.7k
views
3 answers
2 votes
Java uses threads to enable the entire environment to be ______.SymmetricAsymmetricSynchronousAsynchronous
6.1k
views
2 answers
1 votes
Which methods are utilized to control the access to an object in multi-threaded programming ? Asynchronized methods Synchronized methods Serialized methodsNone of the abo...
1.9k
views
2 answers
1 votes
Match the following interfaces of Java. Servlet package $:$$\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II}\\ \text{a.}& \text{Servlet config} & \text{i...
686
views
3 answers
1 votes
we know that pointer implementation is not possible in java and dynamic memory allocation is also not possible.Then how we can implement linked list in java?
11.0k
views
3 answers
2 votes
Which of the following statements is correct?Every class containing abstract method must not be declared abstractAbstract class cannot be directly initiated with new oper...
2.6k
views
2 answers
1 votes
Method over-riding can be prevented by using final as a modifier at ______.The start of the class.The start of method declaration.The start of derived class.The start of ...
7.2k
views
3 answers
3 votes
Which of these is a super class of all errors and exceptions in the Java language?Runtime ExceptionsThrowableCatchableNone of the above
5.1k
views
3 answers
2 votes
Consider the following Java code fragment:public class While { public void loop() { int x = 0; while(1) { System.out.println("x plus one is" +(x+1)); } } }There is syntax...
2.5k
views
1 answers
1 votes
Which of the following is not a correct statement ?Every class containing abstract method must be declared abstract.Abstract class can directly be initiated with ‘new�...
1.5k
views
1 answers
2 votes
Which method is called first by an applet program ? start( ) run( ) init( ) begin( )
2.7k
views
1 answers
1 votes
Converting a primitive type data into its corresponding wrapper class object instance is called BoxingWrapping InstantiationAutoboxing
2.2k
views
1 answers
1 votes
Which of the following methods from Object is final ( that it cannot be overriden ) ?(A) finalize method(B) clone method(C) hashCode method(D) getClass method
3.5k
views
1 answers
0 votes
What is the output of this program? class Conversion { public static void main(String args[]) { double a = 295.04; int b = 300; byte c = (byte) a; byte d = (byte) b; Syst...
3.9k
views
2 answers
7 votes
Find the output of the following Java code line System.out.printIn(math.floor(-7.4))-7-8-7.4-7.0
Help get things started by asking a question.