Questions & Answers for: Sun java class Computers & Internet

Question about Java Programming Language (cdj-275)

1 Answer

...java/beginners/entervaluesfromkeyboard.shtml: class Rectangle{ int length, breadth; void show(int x, int y){ length = x; breadth = y; } int calculate(){ return(length * breadth); } } public class ...

Ad

Question about Java Programming Language (cdj-275)

1 Answer

...java everything is object oriented. You will call a function through an object. Now we are calling the main method without any object as we do not create any object of the class that contains a main ...

Ad

Question about Java Programming Language (cdj-275)

1 Answer

...java program to print my full name dhanalakshmi in a single line. place the below code in a text file dhana.txt and compile it. class dhana { public static void main(String[] args) { ...

Question about Java Programming Language (cdj-275)

1 Answer

Please write a java program to print your full name in a single line. class username { public static void main(String[] args) { System.out.println("your name goes here"); // Display the string. } }

Question about Java Programming Language (cdj-275)

1 Answer

...Java Singleton pattern belongs to the family of design patterns that governs the instantiation process. A Singleton is an object that cannot be instantiated. This design pattern suggests that at any ...

Question about Java Programming Language (cdj-275)

1 Answer

java.util.*; public class test { static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int mark = scan.nextInt(); for(int i=0; i< mark; i++){ for(int j=0;j<=i;j+

Question about Java Programming Language (cdj-275)

1 Answer

...Hello.java: In command prompt type "javac Hello.java". Now, in the working directory, you will see a new file, Hello.class. Run that file by "java Hello.class". Hope this helps! Thanks for using ...

Question about Java Programming Language (cdj-275)

1 Answer

...class A.java Did your main page has a same name as java?OrYou are running in cmd thenjavac A.java       //  this will compilerun like:::::java AAny other query then tell ...

Not finding what you are looking for?

Ask a Question

Usually answered in minutes!

Manuals & User Guides

Loading...