Servlet Tutorial

Introduction to Servlets: Java servlets are small, platform-independent Java programs that can be used to extend the functionality of a Web server in variety of ways. Small java... read more ?

write a program to object cloning?

package com.instanceofjava; public class Employee implements Cloneable { int a=0;            String name="";        Employee (int a,String name){  this.a=a;        this.name=name;... read more ?

Write a program to Overriding in java?

Here I am taking class A: package com.oops; class A{ void msg(){ System.out.println("Hello"); } } Here I am taking class B: class B extends A{ void msg(){ System.out.println("Welcome");... read more ?

Write a program to String reverse without using any string Api?

package com.instaceofjava; public class ReverseString { public static void main(String[] args) { String str="Hello world"; String revstring=""; for(int i=str.length()-1;i>=0;--i){ revstring +=str.charAt(i); } System.out.println(revstring); } } Output: dlrow olleH... read more ?

Can you define an abstract class without any abstract methods? if yes what is the use of it?

Yes. Declaring a class abstract without abstract methods means that you don't allow it to be instantiated on its own. The abstract class used in java signifies that... read more ?

what are the differences between Final , finally finalize()?

Final:  Any variable declare along with final modifier then those variables treated as final variables if we declare final variables along with static will became constants. public final... read more ?

What is Exception? difference between Exception and Error? and types of Exceptions?

java.lang.Throwable

(adsbygoogle = window.adsbygoogle || []).push({});   Exceptions are the objects representing the logical errors that occur at run time and makes JVM enters into the state of  "ambiguity".... read more ?

Select Menu